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 throw
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
Get step-by-step solutions from verified subject matter experts
