Question: Name this program pay.c - This program reads two values. The first is an hourly wage ( double ) and the second is the number

Name this program pay.c - This program reads two values. The first is an hourly wage (double) and the second is the number of hours worked (integer) in a week. The program will compute the total weekly pay based on the following guide:
Regular time, 0 to 40 hours, use the regular hourly rate
Overtime, 41 to 50 hours, regular rate for the first 40 hours and 1.5 times hourly rate for hours over 40
Double-time, 51 or more hours, regular rate for the first 40 hours, 1.5 times the hourly rate for the next 10 hours, and 2.0 times the hourly rate for all hours over 50

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!