//declare the variables
//provide a welcome statement and directions
Display "Pay Calculator"
Display "Enter the requested values to calculate the gross pay for an employee"
//get the input
Display "Enter the Employee's name"
Display "Enter the number of hours worked"
Display "Enter the hourly pay rate"
//calculate the gross Pay
Set grossPay = hourlyPayRate * hoursWorked
//calculate the tax depending on the gross pay and the chart mentioned
IF grossPay < 1500 Then
tax = .15 * grossPay
Else IF grossPay >= 1500 And IF grossPay <3000 Then
tax = .19* grossPay
Else IF grossPay >= 3000 And IF grossPay <4500 Then
tax = .21* grossPay
Else IF grossPay >= 4500 And IF grossPay <6000 Then
tax = .23* grossPay
tax = .27* grossPay
//calculate the net pay by deducting the tax from gross pay.
netPay = grossPay -tax
//display the output
Display "The gross pay for ", employeeName, "is: "
Display "Hours worked: ", hoursWorked
Display "Hourly pay rate: ", hourlyPayRate
Display "Gross Pay: ", grossPay
Display "Tax: ",tax
Display "Net Pay: ",netPay
//display termination message
Display "Thank you XXX XXXXX Pay Calculator"
Display "Enter any key to quit"
Write Pseudocode and explain the how do you do the program desk check?
A small startup software developer company needs to create a program that will calculate the pay of its employees. For the third version of the program, the company wants the program to accept an employee’s name, the number of hours the employee worked, and the hourly pay rate. The program will then calculate the gross pay, display the employee’s name, number of hours worked, pay rate, and gross pay, but also calculate and display the net pay of the person after taxes have been calculated and deducted. The user will then be able to continue calculating the pay for additional employees until the user decides to stop or until the maximum number of employees is reached.
Answer this Question
computer - A small startup software developer company needs to create a program ...
CIS115 - A small startup software developer company needs to create a program ...
computer Programming - A small startup software developer company needs to ...
computers - I have just started a basic class in programming and I am totally ...
programing - A small startup software developer company needs to create a ...
computer programming - small startup software developer company needs to create ...
programing - small startup software developer company needs to create a program...
devry - A small startup software developer company needs to create a program ...
CSI 115 Logic And Design - Hi I know you have got this same question ask to you ...
Linear Programming - Math - A small software company publishes computer games ...