Create a CourseException class that extends Exception. Create a Course class with String that holds a college course's department (for example, CSE), a course number (for example, 101), and a number...

Please write the java program for the given scenario
Create a CourseException class that extends Exception. Create a Course class<br>with String that holds a college course's department (for example, CSE), a<br>course number (for example, 101), and a number of credits (for example, 3) and<br>whose getdata() member function requires values for each field., throw a<br>CourseException if the department does not consist of three letters, if the<br>course number does not consist of three digits between 100 and 499 inclusive,<br>or if the credits are less than 0.5 or more than 6. Write an application and<br>display an appropriate message when a Course object is created.<br>

Extracted text: Create a CourseException class that extends Exception. Create a Course class with String that holds a college course's department (for example, CSE), a course number (for example, 101), and a number of credits (for example, 3) and whose getdata() member function requires values for each field., throw a CourseException if the department does not consist of three letters, if the course number does not consist of three digits between 100 and 499 inclusive, or if the credits are less than 0.5 or more than 6. Write an application and display an appropriate message when a Course object is created.

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here