Question: Using Java: You will write a program that will ask the runner's name, how far he/she ran, and how long it took. You will then

Using Java:

Using Java: You will write a program that will ask the runner's

You will write a program that will ask the runner's name, how far he/she ran, and how long it took. You will then calculate how fast the runner actually ran. Then you will calculate how long it would take 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 Ask for the runner's name Ask She 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. What is your first name?//user enters Pheidippides How far did you run today? 1.5//user enters 1.5 miles user enters 0 hours How long did it take? hours: 0//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 kilometres 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!