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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started