Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

Students also viewed these Databases questions

Question

Describe key customer feedback collection tools.

Answered: 1 week ago

Question

Know what customers expect from the firm when they complain.

Answered: 1 week ago

Question

Understand why customers complain.

Answered: 1 week ago