Question: Programming Exercise #3: Payroll Class 410 a. Class Design a Payroll class that has fields for an employee's name, ID number, hourly pay rate,
Programming Exercise #3: Payroll Class 410 a. Class Design a Payroll class that has fields for an employee's name, ID number, hourly pay rate, and number of hours worked. Write accessor and mutator methods for all fields. Include one constructor that accepts the employee's name as an argument. Include another constructor that includes the employee's name and ID as arguments. Write a method to calculate the employee's gross pay. b. Tester Write a tester clas that interacts with the Payroll class. Demonstrate the use of both constructors and interact with the user to get the information. The program should display the employee's information and gross pay. c. UML Diagram Write a UML diagram for the Payroll class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
