Question: On your mark. Get Set. Go [20 Points] Write a program that asks for the names of three runners and the time it took each

On your mark. Get Set. Go [20 Points]

Write a program that asks for the names of three runners and the time it took each of them to finish a race.

The program should display who came in first, second, and third place.

Assume time is different for each one of them, so there will not be any tie.

Input Validation: Only accept positive numbers for the times. INPUT FORMAT (values are example):

Enter name of runner 1: Usain Bolt Time taken by runner 1: 9.58

Enter name of runner 2: Asafa Powell Time taken by runner 2: 10.10

Enter name of runner 3: Tyson Gay Time taken by runner 3: 9.69

OUTPUT FORMAT: First Place: Usain Bolt Second Place: Tyson Gay Third Place: Asafa Powell

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!