Sale!

Grade Book entry program…..solved

$20.00 $17.00

Category:

Description

5/5 - (2 votes)

For this problem you will implement a grading program that functions as a possible grade book entry program. Write a program called grades.py, that meets the following criterion
1. As per the guidelines at the top of the assignment you may NOT import any modules. This includes the statistics module.(Don’t use global variable)
2. The user should be displayed with a list of options from 1 to 5 1. If the user chooses 1 they should be prompted to enter a student’s name and grade
1. If the student does not appear in the grade book, the student and the grade should be added to the grade book 2. If the student is already in the grade book their grade should be changed to the value given
2. If the user chooses 2 they should be prompted to enter a student’s name. 1. That student should be removed from the grade book 2. If the student is not in the grade book then the grade book should not be modified but also no error should be displayed.
3. If the user chooses 3 the names and grades of all students should be displayed in alphabetical order
4. If the user chooses 4 the following statistics for the course should be displayed: Mean, Median, and Mode 1. The median is the middle number in a list of sorted numbers 2. The mode is the value that appears most often 1. If more there are 2 or more more numbers that appear most often then you may display any of them.
5. If the user chooses 5 the program should terminate
6. If any other option is chosen the program should tell the user that it does not recognize the option and ask the user for another choice.
7. All inputs besides the command choice will be valid.
8. You do not have to match the exact number of spaces I have in my output when displaying grades and course statistics but there needs to be at least 1 space.
9. Hint: Break the problem down into small functions that each tackle one part of the problem. For example have one function for inserting a student into the grade book, another for calculating the mean, etc.
Example 1. Add/modify student grade 2. Delete student grade 3. Print student grades 4. Display the course statistics 5. Quit Your choice: 1 Enter name and points (Ex. ‘Bob 95’): bob 12 1. Add/modify student grade 2. Delete student grade 3. Print student grades 4. Display the course statistics 5. Quit Your choice: 1 Enter name and points (Ex. ‘Bob 95’): alice 77 1. Add/modify student grade 2. Delete student grade 3. Print student grades 4. Display the course statistics 5. Quit Your choice: 1 Enter name and points (Ex. ‘Bob 95’): jake 90 1. Add/modify student grade 2. Delete student grade 3. Print student grades 4. Display the course statistics 5. Quit Your choice: 3 —–Displaying Grades—– alice : 77 bob : 12 jake : 90