Question: Java code please. 10. Exception proiect This assignment assumes vou have completed Programming Challenge 1 of Chapter 10 (Employee and ProductionWorker Classes) Modify the Employee
10. Exception proiect This assignment assumes vou have completed Programming Challenge 1 of Chapter 10 (Employee and ProductionWorker Classes) Modify the Employee and ProductionWorker classes so they throw exceptions when the following errors occur: . The Employee class should throw an exception named InvalidEmploveeNumber when it receives an invalid employee number. The Production Worker class should throw an exception named InvalidShift when it receives an invalid shift The Production Worker class should throw an exception named InvalidPavRate when it receives a negative number for the hourly pay rate. Write a test program that demonstrates how each of these exception conditions works. File name must be: ExceptionProject.java 10. Exception proiect This assignment assumes vou have completed Programming Challenge 1 of Chapter 10 (Employee and ProductionWorker Classes) Modify the Employee and ProductionWorker classes so they throw exceptions when the following errors occur: . The Employee class should throw an exception named InvalidEmploveeNumber when it receives an invalid employee number. The Production Worker class should throw an exception named InvalidShift when it receives an invalid shift The Production Worker class should throw an exception named InvalidPavRate when it receives a negative number for the hourly pay rate. Write a test program that demonstrates how each of these exception conditions works. File name must be: ExceptionProject.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
