1) Modify the Firm program such that it expands its use of polymorphism by using an interface called Payable . You will move pay method from…

1) Modify the Firm program such that it expands its use of polymorphism by using an interface called Payable. You will movepay method from StaffMember into Payable.

2) Modify Firm such that all employees can be given different vacation options depending on their classification. Provide an abstract method in StaffMember called vacation that returns the number of vacation days a person has. Give allEmployees a standard number of vacation days (14) using a constant STANDARD_VACATION. 

a) Then override the vacation method in the various Employee classes as follows:

– Employee: STANDARD_VACATION

– Hourly: STANDARD_VACATION – 7 

– Executive: STANDARD_VACATION + extraVacation

  NOTE: You will need to add extraVacation as instance variable to Executive and pass

   it in as an argument to the constructor.

– Volunteer (who are not Employees): 0

b)  Call vacation method inside the loop already used by payday method so we see each StaffMembers vacation days.

3) Rewrite the Sorting class so that both sorting algorithms put the values in descending order. 

4)  Sort the array of StaffMembers based on name using the updated selection OR insertion sort from Sorting.java. Put the sort method in the class that has direct access to the array. Then call the sort in main before calling payday                                                               

Hints on Implementation

Constructor for Executive needs to be passed the number of vacation days. No other StaffMember needs to have its constructor updated.

All StaffMembers need to override the vacation method

Use a constant for VACATION_DAYS. This way if the Firm becomes more generous in future, we only need to update one line of code.

StaffMember needs to OVERRIDE 

 

GET THIS PAPER OR A SIMILAR PAPER WITH SUBMIT YOUR HOMEWORKS AND GET AN AMAZING DISCOUNT


1) Modify the Firm program such that it expands its use of polymorphism by using an interface called Payable . You will move pay method from… was first posted on August 13, 2020 at 9:38 am.
©2019 "Submit Your Assignment". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at support@nursingassignment.org

 

“Is this question part of your assignment? We Can Help!”

Essay Writing Service


1) Modify the Firm program such that it expands its use of polymorphism by using an interface called Payable . You will move pay method from… was first posted on August 13, 2020 at 9:53 am.
©2019 "Nursing Assignment". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at support@nursingassignment.org

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational