Question: Using java: Please don't include methods in program. I am a beginner - thank you. NOTE: please make sure the program is properly working because

Using java: Please don't include methods in program. I am a beginner - thank you. NOTE: please make sure the program is properly working because I already asked this question and he/she made a mistake on their calculation which made the program give out incorrect output.

Write a program that prompts the user to ask for the runner name, how far they ran, and how long it took. Please then calculate how fast the runner actually ran. Then you will calculate how long it takes to run a 10K, and how long it would take to run a marathon if the runner were able to maintain this pace. You will also show the runner what his/her training pace is. 1.Ask for the runners name. 2.Ask the runner to enter a floating point number for the number of miles ran, like 3.6, or 9.5. 3. Then ask for the number of hours, minutes, and seconds it took to run.

Using java: Please don't include methods in program. I am a beginner

Example user enters Pheidippides What is your first name? How far did you run today? 1.5 user enters 1.5 miles How long did it take? hours: 0 user enters 0 hours minutes: 12 user enters 12 minutes seconds: 0 user enters 0 seconds Hi Pheidippides, Your pace is 8:0 (minutes seconds) At this rate your marathon time would be 3:29:36 and your 10K time would be 0:49:41 Good luck with your training! Definitions: 10K a 10 kilometer race. marathon a 26.2 mile long race. 1 mile 1.61 kilometers pace how long it takes (in minutes and seconds to run 1 mile. Example: if I can run 1 mile in 5 minutes and 23 seconds, then my pace is 5:23

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!