UML

Scenario and Summary
The objective of the lab is to take the UML Class diagram and enhance last week’s Employee class by making the following changes:
Create a class called Salaried that is derived from Employee.1.
Create a class called Hourly that is also derived from Employee.2.
Override the base class calculatePay() method.3.
Override the displayEmployee() method.4.
Deliverables
Due this week:
Capture the Console output window and paste into a Word document.
Zip the project folder file.
Put the zip file and screenshots (Word document) in the Dropbox.
STEP 3: Modify the Employee Class
Using the updated Employee class diagram, modify the attributes to be protected.1.
STEP 4: Create the Salaried Class
Using the UML Diagrams from Step 1, create the Salaried classes, ensuring to specify that the Salary class inherits from the Employee class.1.
For each of the constructors listed in the Salaried class, ensure to invoke the appropriate base class constructor and pass the correct arguments to the base class constructor. This will
initialize the protected attributes and update the numEmployees counter.
2.
The valid management levels are 0, 1, 2, and 3, and should be implemented as a constant.3.
Override the calculatePay method to add a 10 percent bonus for each of the management levels (i.e., bonus percentage = managementLevel * .10). The bonus percentage should be
implemented as a constant.
4.
Override the displayEmployee() method to add the management level to the employee information.5.
STEP 5: Label Title
Using the UML Diagrams from Step 1, create the Hourly classes, ensuring to specify that the Hourly class inherits from the Employee class.1.
For each of the constructors listed in the Hourly class, ensure to invoke the appropriate base class constructor and pass the correct arguments to the base class constructor. This will
initialize the protected attributes and update the numEmployees counter.
2.
The valid category types are “temporary”, “part time”, and “full time”.3.
The provided hours must be more than 0 hours and less than 50 hours, and the limits should be implemented as constants.4.
The provided wage must be between 10 and 75, and the limits should be implemented as constants.5.
Override the calculatePay method by multiplying the wages by the number of hours.6.
Override the Employee setAnnualSalary method and set the annual salary by multiplying the weekly pay by 50.7.
Override the displayEmployee() method to add the category to the hourly employee information.8.
STEP 6: Label Title
Using previous weeks’ assignments as an example, create at least one Employee, Hourly, and Salaried employee.1.
For each object created, display the number of employees created.2.
For each object created, write statements to exercise each of the public methods listed in the Class diagram.3.
For each object created, invoke the object’s displayEmployee() method to display the employee’s information.4.
For employee, the following information needs to be displayed:5.