Question: Name this program pay. c - This program reads two values, an hourly wage (double) and the number of hours worked (integer). Calculate the total
Name this program pay. c - This program reads two values, an hourly wage (double) and the number of hours worked (integer). Calculate the total weekly pay based on the following guide 0 to 40 hours, use the regular hourly rate 41 to 60 hours, use regular rate for the first 40 hours and 1.5 times the hourly rate for all hours over 40 61 or more hours, use the regular rate for the first 40 hours, 1.5 times the hourly rate for the next 20 hours, and 2.0 times the hourly rate for all hours over 60 For example, entering 12.50 and 45 gives a weekly pay of $593.75 ($500 regular + $93.75 time-and-a-half)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
