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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started