Question: need help on my programming assignment that has to do with sorting in Java. I'm not a great programmer but hopefully, I could get some
need help on my programming assignment that has to do with sorting in Java. I'm not a great programmer but hopefully, I could get some help.
Overview In this assignment you will be implementing 7 total classes that will simulate a payroll of employees of a startup company. The superclass Employee is provided in examples/program5, and the first six classes below will subclass from Employee. All instance variables are private and thus require necessary getter and setter methods. All instance methods are public.





Employee superclass:

(yearsNorked(usedUnpaidVacation 260) + ((usedVacation 260) 2)(usedSickDays 260) Engineer extends Employee Engineer(int yearsWorked)i constructor final double YEARLY BONUS 5000: Slyear final int PAID_VACATION10; 1/ days) final int UNPAID VACATION10; days final double HEALTHINSURANCE 10000 year final double INCOME 100000; /Slyear int usedUnpaidvacation; I/ keeps track of how much / unpaid vacation has been used int usedVacation; 1/ keeps track of how much paid vacation void usePaidvacation): I/ adds one to usedVacation void useUnpaidVacation adds one to has been used. /I instance variable // usedUnpaidVacation void workYear) Adds one to yearsworked. double YTDValue)overridden from Employee class This is calculated by taking the sum of YEARLY BONUS HEALTH INSURANCE INCOME PAID VACATION(INCOME 260) int yearsTillRetirenento / Overridden from Employee class. This should be rounded up to the nearest int. The calculation should take place as floating point arithmetic to ensure precision (hint: cast as double where necessary). This number should not be below zero. This is calculated by: 35 (yearsworked (usedUnpaidvacation 260) + (usedvacation260) 2)) Accountant extends Employee Accountant(int yearsworked); constructor final int PAID VACATION 10; // days final int UNPAID VACATION10: days final double HEALTHINSURANCE-15000 year final double INCOME = 125000; // $.year int usedUnpaidvacation; // keeps track of how much //unpaid vacation has been used. int usedvacation / keeps track of how much paid vacation has been used
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
