Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use java Exercise 2. Write a program that asks the user for three runner's names and the time, in minutes, it took each of them

use java image text in transcribed
Exercise 2. Write a program that asks the user for three runner's names and the time, in minutes, it took each of them to finish a race. The program should display the names of the runners in the order that they finished the race. Sample output Enter name of runner 1: George Enter name of runner 2: Henry Enter name of runner 3: Peter Enter time to finish race in minutes for runner 1: 30 Enter time to finish race in minutes for runner 2: 20 Enter time to finish race in minutes for runner 3: 12 The order the race was completed is as follows: Runner in first place: Peter Runner in second place: Henry Runner in third place: George

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

Students also viewed these Databases questions

Question

12.6 Prediction

Answered: 1 week ago