CASE STUDY: A PAYROLL SYSTEMIn this project, students are to use Java to develop a payroll software to assist in paying the salaryof employee/staff of a certain university named XYZ University. Assume we have three employeesin the university with ranks - Programmer, Admin and Librarian, write a Java program to calculateand printout the total salary of these three employees in the institution. The program should havethe following features:1) Create a public class named: Employee that would get the firstname and lastname of eachemployee from the keyboard/user2) Create three objects: prog, adm and lib, for programmer, admin and librarian respectively toaccess the properties in Employee class.3) Create EmployeeSalary as parent interface to store basic_sal, housing_all andtransport_all. The values for these three items are fixed for all Employee and has abstractfunction calculateSalary.4) Create three sub classes namely: programmer, admin and librarian to store bonus,overtime and total salary for each employee5) Each of the constructor in (4) should inherit the properties of Employee(using the superkeyword) and implement the EmployeeSalary interface.6) Hide the properties from the parent class Employee using encapsulation principle.7) Use getters and setters to make the properties in Employee visible and accessible to other
classes: programmer, admin andlibrarian.8) The total salary should be computed by adding basic salary, housing allowance, transportallowance, and bonus, overtime.9) The printout of the program should display the following for each employee: firstname andlastname, basic salary, housing allowance, Transport allowance, bonus, overtime and totalsalary.SAMPLE OUTPUT WOULD BE:run:EMPLOYEE #1:Enter a First Name: StevenEnter a Last Name: PatoProgrammer’s Firstname and LastName are:Steven PatoProgrammer’s Basic salary is:40000.0Programmers Housing Allowance is:20000.0Programmers Transport Allowance is:7000.0Bonus of Programmer is:12000.0overtime of Programmer is:9100.0TOTAL SALARY OF PROGRAMMER IS:88100.0EMPLOYEE #2:Enter a First Name: GraceEnter a Last Name: TioniProgrammer’s Firstname and LastName are:Grace Tioni
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here