Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions