Question: In PYTHON : Create the Grades Dictionary Application. The application keeps a dictionary in which both keys and values are stringsnames of students and their
In PYTHON:
Create the Grades Dictionary Application. The application keeps a dictionary in which both keys and values are stringsnames of students and their course grades. The program prompts the user to add or remove students, to modify grades, or to print all grades. The printout should be sorted by name and formatted like this:
Carl: B+
Francine: A
Joe: C
Sarah: A
The program output should be formatted as shown in the SAMPLE RUN.
The SAMPLE RUN needs to run exactly as follows:

SAMPLE RUN (A)dd, (Remove, (M)odify. (Print all, or (Q)uit? X Sorry, that wasnt a valid choice (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? A Enter the name of the student: Carl Enter the student's grade: B+ (A)dd, (R)emove, (M)odify, (P)rint al, or (Q)uit? A Enter the name of the student: Carl Sorry, that student is already present. (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? A Enter the name of the student: Joe Enter the student's grade: C (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? P Carl: B+ Joe: C (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? M Enter the name of the student to modify: Maria Sorry, that student doesn't exist and couldn't be modified (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? A Enter the name of the student: Sarah Enter the student's grade: B (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? M Enter the name of the student to modify: Sarah The old grade is B Enter the new grade: A (A)dd, (R)emove, (M)odify, (P)rint al, or (Q)uit? A Enter the name of the student: John Enter the student's grade: A (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? P Carl: B+ Joe: C John: A Sarah: A (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? R What student do you want to remove? John (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? P Carl: B+ Joe: C Sarah: A (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? A Enter the name of the student: Francine Enter the student's grade: A (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? P Carl: B+ Francine: A Joe: C Sarah: A (A)dd, (R)emove, (M)odify, (P)rint all, or (Q)uit? Q Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
