CASE STUDY: A PAYROLL SYSTEM
In this project, students are to use Java to develop a payroll software to assist in paying the salary
of employee/staff of a certain university named XYZ University. Assume we have three employees
in the university with ranks - Programmer, Admin and Librarian, write a Java program to calculate
and printout the total salary of these three employees in the institution. The program should have
the following features:
1) Create a public class named: Employee that would get the firstname and lastname of each
employee from the keyboard/user
2) Create three objects: prog, adm and lib, for programmer, admin and librarian respectively to
access the properties in Employee class.
3) Create EmployeeSalary as parent interface to store basic_sal, housing_all and
transport_all. The values for these three items are fixed for all Employee and has abstract
function calculateSalary.
Comments
Leave a comment