Question: write a code using classes and then write a menu: In python 3, write a code using Classes that divide the students grades into 4

write a code using classes and then write a menu: In python 3, write a code using Classes that divide the students grades into 4 different output csv file (Excellent.csv, Very Good.csv, Good.csv, Fail.csv) and write a code for a MENU that can go to any of the output file.

Excellent (greater or equal to 90)

Very Good (70 <= grade <= 89)

Good (50 <= grade <= 69)

Fail (less than or equal to 49)

The input file (grades.csv) is:

Ruby, 49, Fail

Nora, 69, Good

Ali, 75, Very Good

Yasser, 91, Excellent

Sara, 51, Good

Kiley, 45, Fail

Mike, 73, Very Good

Michael, 100, Excellent

Output sample (Excellent.csv):

Yasser, 91, Excellent

Michael, 100, Excellent

The menu should look like this:

enter 1 to display Excellent.csv file

enter 2 to display VeryGood.csv

enter 3 to display Good.csv

enter 4 to display Fail.csv

your choice:

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!