Question: Write a program that will calculate a person's weekly gross pay ( gross pay is pay before taxes ) . The program will ask the
Write a program 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.
Ask the user for their pay rate $hr pt
Enter the pay rate: $
Ask the user for the number of hours worked. pt
Enter the pay rate: $
Enter the number of hours worked:
Multiplied the pay rate by the number of hours worked, and display the weekly gross pay. pts
Enter the pay rate: $
Enter the number of hours worked:
Pay: $
If the person works more than hours, they are paid "timeandahalf" x for hours in excess of hours. Have a decision to determine if the number of hours worked is in excess of and if so calculate and display the weekly gross overtime pay. pts
You might want to create constants for the hours and for the "time andahalf" value of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
