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.
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. pts
Ex:
Enter student s first name: Bob Enter student s grade : Enter student s first name: Alice Enter student s grade : Enter student s first name: Mike Enter student s grade : Enter student s first name: Robin Enter student s grade : Enter student s first name: Ema Enter student s grade : STUDENT INFO First Name: Alice, Grade: First Name: Bob, Grade: First Name: Ema, Grade: First Name: Mike, Grade: First Name: Robin, Grade:
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. pts
MENU a Add a student with grade r Output students above a certain grade q Quit
Implement the "Add student" menu option. Prompt the user for a new student first name and final grade. Then add to dictionary. pts
Ex:
Enter a new student's first name: Rima Enter Rima's final grade : Rima has been added to the dictionary.
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 pts
Ex:
Choose an option: Enter a grade threshold : STUDENTS ABOVE First Name: Rina, Grade: First Name: Rima, Grade:
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. pts
Ex:
Exiting the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
