Question: C++ PROGRAMMING Write a program that calculates the amount of work hours in a given time frame and prints the total amount of hours, the
C++ PROGRAMMING
Write a program that calculates the amount of work hours in a given time frame and prints the total amount of hours, the average work day length and inputted hours separated by spaces. The program first asks how many days will be inputted (max. 30 days). After this the program proceeds to ask the daily work hours.
Tip:
Use an array with 30 elements to ease the making of the program.
Example output:
The program calculates the total amount of work hours during a given time frame and the average work day length.
How many days: 4
Input hours of workday 1: 8
Input hours of workday 2: 7.5
Input hours of workday 3: 9
Input hours of workday 4: 10
Total work hours: 34.5
Average work day length: 8.625
Inputted hours: 8 7.5 9 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
