Question: In python please Programming Exercise that a file containing a series of integers exists on your system. Write a program that Assume calculates the average,

In python please
 In python please Programming Exercise that a file containing a series

Programming Exercise that a file containing a series of integers exists on your system. Write a program that Assume calculates the average, minimum, and maximum of all the numbers stored in the file. The program should contain a main0 function which prompts for the name of the file, attempts to open the file, and pass it to the function numbers function should compute the average, minimum, and maximum values and print them out. It should then return the total number of lines read to the main function for error checking purposes. numbers(in File) where inFile is the file variable. The Sample run: Enter the name of the file: numbers.txt Opened numbers.txt for reading Average: 50 Min: 25 Max: 75 Calculations based on 3 numbers After completing the program and testing the output for accuracy, add a comment block including r name, course and section, current date, and assignment deseription. To submit the completed assignment, enter the following commands at the Ranger terminal substituting for the appropriate file names script lastName-Exercise log pwd Is -1 cat-n yourProgram.py python3 yourProgram.py (Run the program with sample data) exit lph lastName-Exercise.log

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!