Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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.0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started