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). First Correct Order
1. Get regular hours, overtime hours, and regular hourly wage from the user.
2. Multiply overtime hours by regular hourly wage by 1.5 to get overtime pay. (overPay = overHours * regWage * 1.5)
3. Subtract tax from gross pay to get net pay. (netPay = grossPay - tax)
4. Display net pay for the user to see.
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. Add regular pay and overtime pay to get gross pay. (grossPay = regPay + overPay)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
