Question: I need help getting answered this question : The hourly rate of pay and the number of hours worked for an single employee are entered

I need help getting answered this question :

The hourly rate of pay and the number of hours worked for an single employee are entered into the program. The program should calculate total gross pay for the employee. If the total hours worked is no more than 40 then the total gross pay is the product of the hourly rate times the number of hours worked. If the number of hours worked is greater than 40 then the total gross pay is the sum of the pay rate times 40 (regular pay for the first 40 hours) plus the excess hours worked beyond the 40 regular hours times the pay rate times 1.5. The program then outputs a line such as "The total gross pay for this employee is:" and then the calculated value for the total gross pay.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!