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 with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions