Question: Solution required in python Task 1 [15 points] Write a program that reads in file exercisestats.txt. The format of the file is that the first

 Solution required in python Task 1 [15 points] Write a program

Solution required in python

Task 1 [15 points] Write a program that reads in file exercisestats.txt. The format of the file is that the first number is the number of exercise items that would follow. Then follow the exercise name and the number of calories burned in the exercise. Sample Input File (exercisestats.txt): 3 Aerobics 450 Badminton 226 Basketball 380 You need to read this file and write some useful information to another file called analysis.txt. The useful information is - Total calories burned - Exercise with the highest calorie burned Sample Output (analysis.txt): Total calories burned: 1056 Exercise item with highest calories burned: Aerobics

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!