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
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?
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started