Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHIC Write an application that displays a series of at least 10 student ID numbers (that are stored in an array) and asks the user

image text in transcribed

CHIC Write an application that displays a series of at least 10 student ID numbers (that are stored in an array) and asks the user to enter a letter grade (A, B, C, ...) for the student. Create an Exception class named Grade Exception that contains a static public array of valid grade letters ('A', 'B', 'C', 'D', 'F, and 'T'), which you can use to determine if the user entry is a valid grade. In your application, throw a GradeException if the user does not enter a valid letter grade. Catch the GradeException and then display an appropriate message. In addition, store an Tincomplete) for any student for whom an exception is caught. At the end of the application, display all the student ID's and grades Save the file as GradeException.java and TestGrade.java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

=+21.16. For the density Cexp( -1x| "), - o Answered: 1 week ago

Answered: 1 week ago