Question: This is all in java Design and implement a program that utilizes an exception class called ScoreNot ValidException, designed to be thrown when an exam

This is all in java This is all in java Design and implement a program that utilizes

Design and implement a program that utilizes an exception class called ScoreNot ValidException, designed to be thrown when an exam score is not valid. An exam score must be a non-negative integer less then or equal to 100. In the main driver of the program, read numbers from the user until the user enters -1. If a score is entered that is not valid, say less than 0 or more than 100, throw the exception. The program should catch and handle the exception if it is thrown. Handle the exception by printing an appropriate message, and then continue processing more scores by finding the largest score entered. After user enters -1, the program prints this largest exam score on the screen. public class ScoreNot ValidException extends Exception public ScoreNot ValidException(String message) super(message): }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!