Question: Write a program in C Programming that will calculate a person's weekly gross pay ( gross pay is pay before taxes ) . The program

Write a program in C Programming that will calculate a person's weekly gross pay (gross pay is pay before taxes). The program will ask the user to enter the pay rate (as a double), followed by the number of hours worked (as a double), and will display the weekly gross pay.
(1) Ask the user for their pay rate ($/hr.).(1 pt)
Enter the pay rate: $
10.00
(2) Ask the user for the number of hours worked. (1 pt)
Enter the pay rate: $
10.00
Enter the number of hours worked:
12.0
(3) Multiplied the pay rate by the number of hours worked, and display the weekly gross pay. (2 pts)
Enter the pay rate: $
10.00
Enter the number of hours worked:
12.0
Pay: $120.00
(4) If the person works more than 40 hours, they are paid "time-and-a-half" (1.5x) for hours in excess of 40 hours. Have a decision to determine if the number of hours worked is in excess of 40, and if so, calculate and display the weekly gross overtime pay. (6 pts)
You might want to create constants for the 40 hours and for the "time -and-a-half" value of 1.5.
write in C

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 Programming Questions!