In Java, create a program that asks the user for their first name, last name, address, city, zip, phone number, email, hourly rate, start date, end date, and number of hours worked. The program must consist of three classes, each one as its own .java file. Classes named Employee, PayPeriod, and Payroll Manager. Employee gathers the info about the employee. PayPeriod gathers the payment info. PayrollManager computes and displays the info. PayrollManager should also use methods such as: double CalculateGrossPay(Employee, PayPeriod), double CalculateRegularPay(Employee, PayPeriod), double CalculateOvertimePay(Employee, PayPeriod), and void PrintPaystub(Employee, PayPeriod).
In Java, create a
output:
------------------------------------------
Employee ID: 123456
Last Name: last First Name: first
Hours Worked: 50 Hourly Rate: $10.00
Regular Pay: 40 hours at $10/hr: $400.00
Overtime Pay: 10 hours at $15/hr: $150.00
Gross Total: $550.00
------------------------------------------
Step by step
Solved in 2 steps with 1 images