Question: name: String ( 5 pts ) id: String ( 5 pts ) hours: int ( 5 pts ) rate: double ( 5 pts ) private
name: String pts
id: String pts
hours: int pts
rate: double pts
private members pts
You are to create noarg and parameterized constructors and the appropriate settersaccessors and getters mutators pts
The class definition should also handle the following exceptions:
An employee name should not be empty, otherwise an exception should be thrown. pts
An employee id should have the form LLNNNN If that form is not received, an exception should be thrown. pts
An employee's hours should neither be negative nor greater than An exception should be thrown otherwise. pts
An employee's pay rate should neither be negative nor greater than An exception should be thrown otherwise. pts
Demonstrate this class in a program separate class or in the same class pts
The exception messages should be appropriate to the specific exception that has occurred. pts
Create a package payroll for the project. pts
The language is java. I need steps on what packages to make and what code to put in what class. If i need to seperate code please state that.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
