programming

posted by .

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first 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.

• programming -

//declare the variables
String employeeName
Real hoursWorked
Real hourlyPayRate
Real grossPay

Real tax

Real netPay

Call displayOpeningMessage
Call getInput
Call calculateGrossPay

Call calculateTax

Call calculateNetPay
Call displayOutput
Call displayTerminationMessage
Stop
Module displayOpeningMessage
//provide a welcome statement and directions
Display "Pay Calculator"
Display "Enter the requested values to calculate the gross pay for an employee"
End Module

Module getInput
//get the input
Display "Enter the Employee's name"
Input employeeName

Display "Enter the number of hours worked"
Input hoursWorked

Display "Enter the hourly pay rate"
Input hourlyPayRate
End Module

Module calculateGrossPay
//calculate the gross Pay
Set grossPay = hourlyPayRate * hoursWorked
End Module

Module calculateTax

//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

Else
tax = .27* grossPay

EndIF

EndIF

EndIF

EndIF

End Module

Module calculateNetPay

//calculate the net pay by deducting the tax from gross pay.

netPay = grossPay -tax

End Module

Module displayOutput
//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
End Module

Module displayTerminationMessage
//display termination message
Display "Thank you XXX XXXXX Pay Calculator"
Display "Enter any key to quit"
End Module

• programming -

Write Pseudocode and explain the how do you do the program desk check?

• programming -

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.

Similar Questions

1. computers

I have just started a basic class in programming and I am totally lost. Can someone help me out?
2. CIS115

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first version of the program, the company wants the program to accept an employee’s name, the number of hours …
3. programing

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 …
4. programing

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 …
5. computer

A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first version of the program, the company wants the program to accept an employee’s name, the number of hours …
6. CSI 115 Logic And Design

Hi I know you have got this same question ask to you a lot, but mine is for week 2 unstead of week 1. This week they want me to come up with and Create the Modular Design for the same subject as week 1, example underneath please. A …
7. devry

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 …
8. computer Programming

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 …
9. computer programming

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 …
10. programming

Temp Employer wants a program that will allow the company’s clerk to enter an employee’s name and the number of hours the employee works every month. (The number of hours worked will always be an integer). The program will display …

More Similar Questions