Question
In basic Java, looking to see how you would go about creating this one. Write a program that allows the user to input students and
In basic Java, looking to see how you would go about creating this one.
Write a program that allows the user to input students and their overall grades. The user can then request to edit the grades, and will be shown a list of students and their grades. You will have to use try catch blocks to handle all the errors that could occur. You will need to handle InputMismatchException and IndexOutOfBoundsException. Here is a clean run with no bad user input. You must make this program work with bad input! If you do get bad input from the user, you should ask the user to fix their mistake, and do not return them to the main menu until they have fixed their mistake.
Ex: 3.
Exit
1 Please enter the students name: Jackson
Please enter a grade for Jackson: 90
Main menu
Select one of the following options
1. Add a Student
2. Edit student grades
3. Exit
2 What student would you like to enter a grade for?
1) Nelson - 87
2) Bryce - 92
3) Jackson - 90
2 Please enter a grade for Bryce 95
Main menu
Select one of the following options
1. Add a Student
2. Edit student grades
3. Exit 3
Thank you, Goodbye!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started