Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
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