Reference no: EM132355652
Question
Write full correct Python program to solve the following problem:
Write program for Professor at College that allows him to keep a record of the students' average grade in his class.
The program must be written in accordance with the following specs:
1. The input must be interactive from the keyboard. You will take input for 12 students.
2. You will input the students' name and an average grade. The student cannot enter an average below zero or above 100. Your program must raise and handle an exception
should this occur.
a. The exception should cause the program to return and get a new grade
3. Write All output to a file named grades.txt
4. Close the output file.
5. Open the file grades.txt for input.
6. Your program will raise and handle an exception if the file is not found.
a. I will test this aspect by changing the file name and looking for your exception code (your exception should cause program to ask for correct file name).
7. Read all the records from the file and display them.