Question: This program will store students first name and final exam grade information for a classroom. ( 1 ) Prompt the user to input five pairs

This program will store students first name and final exam grade information for a classroom.
(1) Prompt the user to input five pairs of student first name and final exam grade. Output the dictionary's elements with the first names and grades ordered by first name in ascending alphabetical order. Hint: Dictionary keys can be stored in a sorted list. (4 pts)
Ex:
Enter student 1's first name: Bob Enter student 1's grade (0-100): 90 Enter student 2's first name: Alice Enter student 2's grade (0-100): 80 Enter student 3's first name: Mike Enter student 3's grade (0-100): 67 Enter student 4's first name: Robin Enter student 4's grade (0-100): 78 Enter student 5's first name: Ema Enter student 5's grade (0-100): 89 STUDENT INFO First Name: Alice, Grade: 80 First Name: Bob, Grade: 90 First Name: Ema, Grade: 89 First Name: Mike, Grade: 67 First Name: Robin, Grade: 78
2) Implement a menu of options for a user to modify the final grade dictionary. Each option is represented by a single character. The program initially outputs the menu, and outputs the menu after a user chooses an option. The program ends when the user chooses the option to Quit. For this step, the other options do nothing. (3 pts)
MENU a - Add a student with grade r - Output students above a certain grade q - Quit
(3) Implement the "Add student" menu option. Prompt the user for a new student first name and final grade. Then add to dictionary. (3 pts)
Ex:
Enter a new student's first name: Rima Enter Rima's final grade (0-100): 70 Rima has been added to the dictionary.
(4) Implement the "Output students above a certain grade" menu option. Prompt the user for a grade. The first name and grade of students above the input grade will be displayed .(3 pts)
Ex:
Choose an option: Enter a grade threshold (0-100): 80 STUDENTS ABOVE 80 First Name: Rina, Grade: 86 First Name: Rima, Grade: 89
(5) Implement the "quit" menu option. When the user chooses this option, "Exiting the program." should be displayed on the screen and the program should be exited. (2 pts)
Ex:
Exiting the program.

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 Programming Questions!