In java, create a program that gathers user input and prints a paystub. This assignment requires one class per .java file, total of three classes. The first one is employee.java which gathers the user's id (fixed value), first name, last name, address, city, zip, phone, email, and hourly rate. The second one is payperiod.java, which gathers the user's hours worked (taking overtime into account), start date (fixed), end date (fixed), and paystub id (fixed). The third one is payrollmanager.java, which calculates and displays the data gathered from the first two. This class/file 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 program that gathers user input and prints a paystub. This assignment requires one class per .java file, total of three classes.
The first one is employee.java which gathers the user's id (fixed value), first name, last name, address, city, zip, phone, email, and hourly rate.
The second one is payperiod.java, which gathers the user's hours worked (taking overtime into account), start date (fixed), end date (fixed), and paystub id (fixed).
The third one is payrollmanager.java, which calculates and displays the data gathered from the first two. This class/file should also use methods such as: double
CalculateGrossPay(Employee, PayPeriod), double CalculateRegularPay(Employee, PayPeriod), double CalculateOvertimePay(Employee, PayPeriod), and void PrintPaystub(Employee, PayPeriod).
Trending now
This is a popular solution!
Step by step
Solved in 4 steps