Question: IN PYTHON (Class Average: Writing Student Records to a plain text File) An instructor teaches a class in which each student takes three test. The

IN PYTHON

(Class Average: Writing Student Records to a plain text File) An instructor teaches a class in which each student takes three test. The instructor would like to store this in- formation in a file named grades.txt for later use. Write code that enables an instructor to enter each students first name and last name as strings and the students three test grades as integers. write each record into the grades.txt file. Each record should be a single line of text in the following txt format:

firstname,lastname,test1grade,test2grade,test3grade

Make a reasonable effort to trap and correct-for errors due to 1. User input errors 2. File not found errors 3. Numerical errors

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!