Make a program that displays the gross pay for one or more


Make a program that displays the gross pay for one or more employees. The program should allow the user to enter the number of hours the employee worked and his or her hourly pay rate. Use a negative sentinel value to stop the program. Employees are paid at their regular pay rate for hours worked from 1 through 37. They are paid time and on--half for the hours worked from 38 through 50, and double-time for the hours worked over 50. Use a program-defined function to calculate and return the employee's overtime pay. (Hint: If an employee earns $10 per hour and works 37 hours, the gross pay is $370.00. If he or she works 38 hours, the gross pay is $385.00. If he or she works 51 hours, the gross pay is $585.00.)

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Make a program that displays the gross pay for one or more
Reference No:- TGS02773661

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)