Answered step by step
Verified Expert Solution
Question
1 Approved Answer
answer b plz Create a program that manages employees' payroll. (28 pts) a. Create an abstract class with the name Employee that implements Comparablecimp 1.
answer b plz Create a program that manages employees' payroll. (28 pts) a. Create an abstract class with the name Employee that implements Comparablecimp 1. The constructor to take name, id, title, and salary and sets the correspondent a II. Implement the getters for all variables, and only the setSalary method, that takes worked as inputs, to be made abstract. that implements Comparable. [10 pts] b. Create another two classes inheriting from Employee, implement their constructors as well. [10 pts] I. SalaryEmployee and HourlyEmployee to implement the set Salary to include the bonus. i. Salary Employee can work additional hours, and for every hour, s/he gets extra $27/hr. ii. Hourly Employee base salary is 0 and total salary is number of hours multiplied by $25. public abstract class Employee implements Comparable { private String name; private String id; private String title; private double salary; * @param aName * @param ald * @param aTitle * @param a Salary */ public Employee(String aName, String ald, String aTitle, double a Salary) { super(); name = aName; id = ald; title = aTitle; salary = aSalary; * @return public String getName() { return name; public String getid) { return id; public String getTitle() { return title; public double getSalary() { return salary; public abstract void setSalary(double hours); @Override public int compareTo(Employee e) { return 0; Note : Please comment below if you have concerns. I am here to help you If you lica m anonor plannrotoond bolom in
answer b plz
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started