Question: Write an application that displays a series of at least five student ID numbers (that you have stored in an array) and asks the user
Write an application that displays a series of at least five student ID numbers (that you have stored in an array) and asks the user to enter a numeric test score for the student. Create a ScoreException class, and throw a ScoreException for the class if the user does not enter a valid score (less than or equal to 100). Catch the ScoreException, display an appropriate message, and then store a 0 for the student’s score. At the end of the application, display all the student IDs and scores.
Save the files as ScoreException.java and TestScore.java.
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
public class ScoreException extends Exception public ScoreExceptionString s supers import j... View full answer
Get step-by-step solutions from verified subject matter experts
