in java please it is all one question Problem 1. Modify the Firm example from this chapter such that all employees can be given different vacation options depending on their classification. Provide a...


in java please<br>it is all one question<br>Problem 1. Modify the Firm example from this chapter such that<br>all employees can be given different vacation options depending<br>on their classification. Provide a method called vacation that<br>returns the number of vacation days a person has. Give all<br>employees a standard number of vacation days (10), then override<br>the method in the various employee classes as appropriate.<br>Modify the driver program to demonstrate this new functionality.<br>Problem 2. Modify the Firm project discussed in class such that it<br>accomplishes its polymorphism using an interface called Payable,<br>containing the pay method.<br>Extra Credit (<br>the Comparable interface. Staff members can be comparable<br>based on their pay. Modify the driver program to display the firm's<br>members in increasing order of their pay. (You may use any of the<br>already implemented searching methods in the lecture.)<br>Modify the Firm project to also implement<br>

Extracted text: in java please it is all one question Problem 1. Modify the Firm example from this chapter such that all employees can be given different vacation options depending on their classification. Provide a method called vacation that returns the number of vacation days a person has. Give all employees a standard number of vacation days (10), then override the method in the various employee classes as appropriate. Modify the driver program to demonstrate this new functionality. Problem 2. Modify the Firm project discussed in class such that it accomplishes its polymorphism using an interface called Payable, containing the pay method. Extra Credit ( the Comparable interface. Staff members can be comparable based on their pay. Modify the driver program to display the firm's members in increasing order of their pay. (You may use any of the already implemented searching methods in the lecture.) Modify the Firm project to also implement

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here