Question: Produce a program to do the following tasks: Print menu of options to screen ( see example below ) . If the user type the

Produce a program to do the following tasks:
Print menu of options to screen (see example below). If the user type the wrong option, you need to ask the user to enter again.
Prompt user to respond with an integer and ask for inputs.
There are five options for users to choose and each option will have a corresponding functionality (different output).
1. if enter option 1, showing students between two levels:
Enter the two numbers in one command line, assuming order must be min and then max
Check those students whose grades is larger than and equal to min value and also smaller than max value
Print each student's name and grades (see below)
Name: alex Grades: 98
Name: mary Grades: 99
Name: bob Grades: 87
Name: tanya Grades: 89
Name: clock Grades: 77
Name: jessie Grades: 88
Name: goodwill Grades: 95
Name: carrie Grades: 90
2. if 2 is entered, showing a statistical graph
You need to count number of students whose grades in 100-90,89-80,79-70,69-60,<60 categories, then print a bar chart like graph by using "*" to represent the number of student in that category.
The chart below tells you that four student's grades are in 100-90, three in 89-80, and etc.
100-90: ****
89-80: ***
79-70: ***
69-60: ***
below 60: **
3. if 3 is entered, you can add a new student into the given dictionary
Prompt to ask for student name and grades
Update (add) student name and grades into the given dictionary.
This will impact the results of your option 1,2,4
4. if 4 is entered, calculate the class average and show the results
5. Exit - if 5 is entered:
Grading:
Total Points: 15 pts
Comment (1pt)
Please put your comments on your codes.
Execution (13pts)
Code runs without any errors or warnings (3 pts)MenuEach use caseCode meets all criteria listed above. Make sure you must pass all the test cases in the example. (10 pts)
Style (1pts)
Program follow style guidelines
Example Outputs:
Welcome to student grade system!
Enter 1: showing students between two levels
Enter 2: showing graph about statistics
Enter 3: adding a new student
Enter 4: showing class average
Enter 5: exiting the program
1
Please enter two levels in one command (min) and (max)
75100
Results:
Name: alex Grades: 98
Name: mary Grades: 99
Name: bob Grades: 87
Name: tanya Grades: 89
Name: clock Grades: 77
Name: jessie Grades: 88
Name: goodwill Grades: 95
Name: carrie Grades: 90
Welcome to student grade system!
Enter 1: showing students between two levels
Enter 2: showing graph about statistics
Enter 3: adding a new student
Enter 4: showing class average
Enter 5: exiting the program
2
Graph: * presents a student
100-90: ****
89-80: ***
79-70: ***
69-60: ***
below 60: **
Welcome to student grade system!
Enter 1: showing students between two levels
Enter 2: showing graph about statistics
Enter 3: adding a new student
Enter 4: showing class average
Enter 5: exiting the program
3
Please enter student name and grade
ken 99
Welcome to student grade system!
Enter 1: showing students between two levels
Enter 2: showing graph about statistics
Enter 3: adding a new student
Enter 4: showing class average
Enter 5: exiting the program
2
Graph: * presents a student
100-90: *****
89-80: ***
79-70: ***
69-60: ***
below 60: **
Welcome to student grade system!
Enter 1: showing students between two levels
Enter 2: showing graph about statistics
Enter 3: adding a new student
Enter 4: showing class average
Enter 5: exiting the program
4
The class average is 79.62
Welcome to student grade system!
Enter 1: showing students between two levels
Enter 2: showing graph about statistics
Enter 3: adding a new student
Enter 4: showing class average
Enter 5: exiting the program
5
Program End

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!