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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39dbc99258_66066f39dbc23d34.jpg)
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
Get step-by-step solutions from verified subject matter experts
