Question: In this programming assignment you will combine the various components of the Java programming language from chapter-9 including, inheritance, interfaces and abstract classes and methods.
In this programming assignment you will combine the various components of the Java programming language from chapter-9 including, inheritance, interfaces and abstract classes and methods. This program is an application that stores employee information and displays the list of employees in a sorted order. The application implementation must adhere to the Employee class hierarchy, shown in the UML model on the next page. The hierarchy consists of a super class Employee and subclasses Salaried and Hourly classes. The Employee super class captures the common attributes and methods for its subclasses, Salaried and Hourly classes. The Salaried and Hourly classes in the hierarchy capture attributes and methods specific to each class. The Employee super class must implement the Comparable interface. This is to support sorting of the employees by annual salary, with employees having the same annual salary sorted alphabetically by name. The annual salary of an hourly employee is computed as the hourly wage multiplied by 2087 hours and rounded to the nearest integer. Each class must implement a toString method to display the class name of the employee and all of its instance fields, including inherited ones. (Use the approach specified in Special Topic 9.6 Inheritance and the toString Method.) The EmployeeTester.java file will populate an ArrayList with valid employees (at least 10 employees with 5 of each type), sort the ArrayList, and display the sorted employees using the toString method of the employees contained in the collection. The first output line of your program displays a message saying the program is for ACO102 ProgAssignment1 developed by
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
