Question: 1-public class InvalidGradeException extend Exception { } 2-we must use customclass for exception 3-for points method it must use throw Objectives: In this lab, the

1-public class InvalidGradeException extend Exception { }

2-we must use customclass for exception

3-for points method it must use throw1-public class InvalidGradeException extend Exception { } 2-we must use customclass for

Objectives: In this lab, the following topic will be covered: 1. Exception Handling Task Write a method that returns quality points for a letter grade if it is valid and throws invalid exception otherwise. Write a test program that prompts the user to enter a letter grade and displays the quality points, as presented in the following sample run: Enter a letter grade: A The quality points 3.75 Enter a letter grade: C The quality points 2.0 Enter a letter grade: X Invalid grade

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!