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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started