Output Specification Output the average number of repetitions for each workout to three decimal places. Note that
Question:
Output Specification
Output the average number of repetitions for each workout to three decimal places.
Note that workout counts is starting at 1.
In program, variables must reset at the begining of each set
Out put average at end of each look must calculate it correctly.
Output Samples
How many workouts do you have data for?
3
How many sets were completed in workout #1?
2
How many repetitions in set #1?
10
How many repetitions in set #2?
15
Workout #1: The average number of repetitions was 12.5.
How many sets were completed in workout #2?
3
How many repetitions in set #1?
9
How many repetitions in set #2?
12
How many repetitions in set #3?
13
Workout #2: The average number of repetitions was 11.333.
How many sets were completed in workout #3?
3
How many repetitions in set #1?
10
How many repetitions in set #2?
12
How many repetitions in set #3?
14
Workout #3: The average number of repetitions was 12.0.
Please write a program that functions like the one above
Cost Management Accounting and Control
ISBN: 978-0324559675
6th Edition
Authors: Don R. Hansen, Maryanne M. Mowen, Liming Guan