Question: (Using Python) Coach Kyle has some top athletes who have the potential to quality for Olympics. They have been training very had for the 5000

(Using Python)

Coach Kyle has some top athletes who have the potential to quality for Olympics. They have been training very had for the 5000 and 10000 meters running competition. The coach has been recording their timings for each 1000 meters. In the practice sessions, each athlete runs a distance in multiples of 1000 meters and the coach records their time for every 1000 meters.

Write a python program that receives the following user input:

1. Name of the athlete

2. Practicing for 5000 or 10000 meters

3. Timings

If practicing for 5000 meters, the program should ask the timing five times. If practicing for 10000 meters, the program should ask time timing 10 times.

Expected output:

1) Program should get the input from the user as follows:

Enter the number of athletes practicing: 4

Enter the name of the athlete 1: Jacob

Jacob is practicing for a) 5000 or b) 10000 meters? : a

1) Enter Jacobs timing for 1000m (min, sec): 3,26

2) Enter Jacobs timing for 1000m (min, sec): 4,15

3)

4)

5) repeat this for five times for Jacob

Enter the name of the athlete 2: Carl

Carl is practicing for a) 5000 or b) 10000 meters? : b

1) Enter Jacobs timing for 1000m (min, sec): 2,46

2) Enter Jacobs timing for 1000m (min, sec): 3,15

3)

4)

5) Repeat this 10 times for Carl

Repeat the above steps for all the remaining athletes Program should display the minimum and average time taken by each athlete and their name in a table form:

Athlete Min Max Avg

Jacob 3:12 3:52 3:30

Peter 3:06 4:12 3:43

Daren 2:56 3:42 3:12

Greg 3:25 3:46 3:33

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!