Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

=+ a. Explain why investment might depend on national income.

Answered: 1 week ago