Question: You have been asked to write a computer program that will output an employees after tax pay. Your program will read from the keyboard the
You have been asked to write a computer program that will output an employees after tax pay. Your program will read from the keyboard the number of regular hours and overtime hours that the employee worked and the employees regular hourly wage. The employee is paid a bonus of 1.5 times regular pay for each overtime hour worked. Tax is 15% of the employees gross pay. Number each of these steps to solve the problem in the correct order from first (1) to last (7).
1. Get regular hours, overtime hours, and regular hourly wage from the user.
2. Add regular pay and overtime pay to get gross pay. (grossPay=rePay + overPay)
3. Substract tax from gross pay to get net pay.(netPay = grossPay -tax)
4. Multiply overtime by regular hour wage by 1.5 to get over time pay. (overPay = overHours * reWage * 1.5)
5. Multiply gross pay by 0.15 to get tax. (tax = grossPay * 0.15)
6. Multiply regular hours by regular hourly wage to get regular pay. (regPay = regHours * regWage)
7. Display net pay for the user to see.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
