Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create an application that displays a series of at least 10 student ID numbers (that you have stored in an array) and asks the user
Create an application that displays a series of at least 10 student ID numbers (that you have stored in an array) and asks the user to enter a test letter grade for the student. Create an Exception class named Grade Exception that contains a static public array of valid grade letters CAB,C 'D', 'F', 'DE', ' WA' and 'T), which you can use to determine whether a grade entered from the application is valid. In your application, throw a GradeException if the user does not enter a valid letter grade. Catch the Grade Exception and then display an appropriate message In addition, store an 'T (for Incomplete) for any student for whom an exception is caught. At the end of the application display all the student IDs and grades. The classes' names are Grade Exceptionjave and TestGrade jave. Conly written answer is required) Once you complete the solution write-up of your answer please upload below the scanned answer You can either use the JOptionPane.showInput Dialog(null,"stringInserted"); or System.out.print 0 to set i.e. test letter grade for the student and for any other common input communication within your program source. Write a complete Java source code application that establishes several GradeException objects and handles the Exceptions
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