Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your friend wants to start training for a marathon. They will be entering 5K, 10K, and 15K races over the next year and want to

Your friend wants to start training for a marathon. They will be entering 5K, 10K, and 15K races over the next year and want to periodically calculate their runs. For this program, we want a simple program where your friend can enter their times on a series of short 5K runs. They want a program to tell them the number of days they ran, the total minutes they ran, the average time of all runs, and the average minutes per kilometer that they ran. The program should ask for the time in minutes of each run and continue to take input until all runs are entered. Then the program should print the information requested. 

Design a word document that includes:

  • A diagram of the solution
  • Pseudocode of the solution

 Implementation

  1. Ask the user for input in minutes (whole numbers) and stop asking for input when the user enters without input.
  2. Calculate the number of days ran (count), the total number of minutes ran (sum), average minutes per run (sum/count), and the average kilometer per minute (sum/count/5).
  3. Provide the output of the number of runs, total minutes, the average time in minutes, and average minutes per kilometer.
  4. Document your program with appropriate comments.
  5. In the Word document that you created above, answer the question: My program runs as expected and why?

Step by Step Solution

3.36 Rating (168 Votes )

There are 3 Steps involved in it

Step: 1

Creating a program for your friends marathon training involves several steps including designing a solution writing pseudocode and implementing the program Below Ill outline these steps in a Word docu... 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

Personal Finance Turning Money into Wealth

Authors: Arthur J. Keown

8th edition

134730364, 978-0134730363

More Books

Students also viewed these Programming questions

Question

Is there any formal training for teaching?

Answered: 1 week ago