Your friend wants to start training for a marathon. They will be entering 5K, 10K, and 15K
Fantastic news! We've Found the answer you've been seeking!
Question:
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
- Ask the user for input in minutes (whole numbers) and stop asking for input when the user enters without input.
- 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).
- Provide the output of the number of runs, total minutes, the average time in minutes, and average minutes per kilometer.
- Document your program with appropriate comments.
- In the Word document that you created above, answer the question: My program runs as expected and why?
Related Book For
Personal Finance Turning Money into Wealth
ISBN: 978-0134730363
8th edition
Authors: Arthur J. Keown
Posted Date: