Question: Write the necessary program in C++ that does the following: 1. Declares a constant value space and Stores the value of 40 as the maximum

Write the necessary program in C++ that does the following:

1. Declares a constant value space and Stores the value of 40 as the maximum number of hours allowed at the normal rate

2. Declares a constant value space and Stores the value of 9.50 as the normal rate paid per hour

3. Declares a constant value space and Stores the value of 15.00 as the overtime rate paid per hour worked during the overtime hours

4. Asks the user to input a value by using the prompt Enter the total hours worked/week: on the screen

5. Reads the users inputted value (for example 52) from the keyboard and Stores it in the variable as the value for the total number of hours worked Assignment #5 Description (continued.)

6. If the total number of hours worked is greater than the maximum number of hours allowed, then Calculates the difference between the two values and stores it as the overtime hours worked

7. Calculates the regular time pay and overtime pay (if overtime hours worked is greater than zero)

8. Calculates the total weekly pay

9. Displays ALL the information on the screen

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!