Question: solution required in python Task 2 [20 points] Write a program that reads in file times.txt. The format of the file is that the first

 solution required in python Task 2 [20 points] Write a program

solution required in python

Task 2 [20 points] Write a program that reads in file times.txt. The format of the file is that the first two numbers are the number of racers and the number of races, respectively. Then follow the racer names followed by the race times in each of the race. Sample Input File: 4 2 Usain Nazim Irfan Humpty 20 30 50 52 34 22 30 32 You need to read this file and write some useful information to another file called raceanalysis.txt. The useful information is Average of the races with the racer name Racer with the lowest time Any disqualified racers (Assume a racer is disqualified if the time is above 30) Sample Output (analysis 2.txt): Average race times with name: Usain 25.0 Nazim 51.0 Irfan 28.0 Humpty 31.0 Subject with the lowest race time: Usain Disqualified racers: 1 Nazim with 51.0 2 Humpty with 31.0

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!