Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

student submitted image, transcription available below

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
 

In this program, we want to assist the user by tracking the average number of repetitions across their sets for each workout they want to enter data for. Program Specification We will start by asking the user how many workouts they want to enter data for. Then, for each workout, ask the user how many sets were completed. Then, for each set, ask the user how many repetitions were completed. When all of the information is entered for the workout, tell the user the average number of repetitions for that workout.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cost Management Accounting And Control

Authors: Don R. Hansen, Maryanne M. Mowen, Liming Guan

6th Edition

324559674, 978-0324559675

More Books

Students also viewed these Programming questions

Question

10.2 Explain how culture affects verbal language.

Answered: 1 week ago