In this assignment you will create two Java classes, an Employee class and a Pay Class that have
the following features:
Employee class properties:
First Name
Last Name
Employee ID number (sample is A12444)
Pay Object
Employee class methods:
Constructor takes the Employee ID Number
Methods to get/set all the other properties but only a get method for Employee ID
Method to get/set pay object
Pay class properties:
Hourly Rate (double)
Hours Worked (int)
Withholding Percentage (double)
Pay class methods:
Method to get/set all the properties
Method to calculate raw pay rate (hours times rat)
Method to calculate overtime pay (hours over 40 times rate * 1.5)
Method to calculate total pay after withholding (calculate total pay minus withholding times total)
Write a Java program that uses these classes to perform the following :
1. Create a ListArray object to hold employees
2. Create a menu program that has three options and will loop until the user selects D:
A. Enter Employee Data
B. Search for Employee Data
C. List All Data
D. Exit
3. If the user selects A then prompt the user to enter:
Employee first name
Employee last name
Employee ID number (a String value)
Hourly Rate
Hours worked
Withholding percentage
4. Using the input data to create a Pay Object and then create an Employee object
5. Store the Employee object in the ListArray
6. If the user enters B prompt the user for an Employee number.
7. If the number is found then display
first name
last name
employee ID
raw pay rate
overtime pay
total pay after withholding
8. If the number is not found then display an error.
9. If the user enters C then for each employee in the list display the information in item 7.