Question: Note: Please only use standard python covered in class lectures. Python libraries such as pandas, numpy are *not allowed in your work. 2. Write Python

 Note: Please only use standard python covered in class lectures. Python
libraries such as pandas, numpy are *not allowed in your work. 2.

Note: Please only use standard python covered in class lectures. Python libraries such as pandas, numpy are *not allowed in your work. 2. Write Python code that prompts the user to specify a csv filename, read grades from the file, compute and output simple statistics of the grades. The input csv file should have the following format (.e. student ID, points): 003519342,22.5 007053869,20 005255827,18 006034733, 23.5 005467659,23 Process all the records in the file and print out the following information. Also, save the same information to a file (results.txt). # of students in file: 5 Average of grades: 21.4 Highest grade: 23.5 Lowest grade: 18 Your code should be able to handle any input csv file with any number of student records. It should handle exceptions like incorrect filename (or file not found), empty grade file and non-numeric student ID and/or grade values. (15 points)

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!