NB: This question shouldn't get rejected at any cost everything is clear please help me answer it, the reason i pay is to get this type of questions answered, take 3-6 hours to answer it CASE STUDY: A PAYROLL SYSTEM  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. 4) Create three sub classes namely: programmer, admin and librarian to store bonus,  overtime and total salary for each employee 5) Each of the constructor in (4) should inherit the properties of Employee(using the super keyword) 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 and  librarian. 8) The total salary should be computed by adding basic salary, housing allowance, transport  allowance, and bonus, overtime. 9) The printout of the program should display the following for each employee: firstname and  lastname, basic salary, housing allowance, Transport allowance, bonus, overtime and total  salary. SAMPLE OUTPUT WOULD BE: run: EMPLOYEE #1:  Enter a First Name: Steven Enter a Last Name: Pato Programmer’s Firstname and LastName are:Steven Pato Programmer’s Basic salary is:40000.0 Programmers Housing Allowance is:20000.0 Programmers Transport Allowance is:7000.0 Bonus of Programmer is:12000.0 overtime of Programmer is:9100.0 TOTAL SALARY OF PROGRAMMER IS:88100.0 EMPLOYEE #2:  Enter a First Name: Grace Enter a Last Name: Tioni Programmer’s Firstname and LastName are:Grace Tioni 3 DUE DATE: WEDNESDAY 22 APRIL 2022 BEFORE 23h59 Admin’s Basic salary is:40000.0 Admin's Housing Allowance is:20000.0 Admin's Transport Allowance is:7000.0 Bonus of Admin is:10000.0 overtime of Admin is:900.0 TOTAL SALARY OF ADMIN STAFF IS:77900.0 EMPLOYEE #3:  Enter a First Name: Teko Enter a Last Name: Zakiza Librarian’s Firstname and LastName are:Teko Zakiza Librarian’s Basic salary is:40000.0 Librarian's Housing Allowance is:20000.0 Librarian's Transport Allowance is:7000.0 Bonus of Librarian is:90000.0 overtime of Librarian is:1900.0 TOTAL SALARY OF LIBARY STAFF IS:158900.0

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

NB: This question shouldn't get rejected at any cost everything is clear please help me answer it, the reason i pay is to get this type of questions answered, take 3-6 hours to answer it

CASE STUDY: A PAYROLL SYSTEM
 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.
4) Create three sub classes namely: programmer, admin and librarian to store bonus, 
overtime and total salary for each employee
5) Each of the constructor in (4) should inherit the properties of Employee(using the super
keyword) 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 and 
librarian.
8) The total salary should be computed by adding basic salary, housing allowance, transport 
allowance, and bonus, overtime.
9) The printout of the program should display the following for each employee: firstname and 
lastname, basic salary, housing allowance, Transport allowance, bonus, overtime and total 
salary.
SAMPLE OUTPUT WOULD BE:
run:
EMPLOYEE #1: 
Enter a First Name: Steven
Enter a Last Name: Pato
Programmer’s Firstname and LastName are:Steven Pato
Programmer’s Basic salary is:40000.0
Programmers Housing Allowance is:20000.0
Programmers Transport Allowance is:7000.0
Bonus of Programmer is:12000.0
overtime of Programmer is:9100.0
TOTAL SALARY OF PROGRAMMER IS:88100.0
EMPLOYEE #2: 
Enter a First Name: Grace
Enter a Last Name: Tioni
Programmer’s Firstname and LastName are:Grace Tioni
3
DUE DATE: WEDNESDAY 22 APRIL 2022 BEFORE 23h59
Admin’s Basic salary is:40000.0
Admin's Housing Allowance is:20000.0
Admin's Transport Allowance is:7000.0
Bonus of Admin is:10000.0
overtime of Admin is:900.0
TOTAL SALARY OF ADMIN STAFF IS:77900.0
EMPLOYEE #3: 
Enter a First Name: Teko
Enter a Last Name: Zakiza
Librarian’s Firstname and LastName are:Teko Zakiza
Librarian’s Basic salary is:40000.0
Librarian's Housing Allowance is:20000.0
Librarian's Transport Allowance is:7000.0
Bonus of Librarian is:90000.0
overtime of Librarian is:1900.0
TOTAL SALARY OF LIBARY STAFF IS:158900.0

 

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education