Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

What do you need to know about your students to motivate them?

Answered: 1 week ago