Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 . Include javadoc comments in all Java classes. Your Javadoc comments must be correct and complete and successfully generate an HTML document.

ubmit the following deliverables on the assignment page on Canvas: 1) An electronic copy of your .java files as one zip file named ProgAssignment1Java.zip. Your program should not include a package statement. 2) A PDF file named ProgAssignment1.pdf containing snapshot of your java files, a snapshot of the output of your program and snapshot of generated Java Doc HTML file. At the top of the pdf file include your name, the course (ACO-102) and the assignment (ProgAssignment1). The File Summary on the next page includes the list of Java files for this assignment. image text in transcribed

File Sy Jana File ORVIEW y Eployees Alexlass Pres. Corporales sanerkesty kryty WWI CRAIGE |, xhaMElile Salarida Susilaa Curtis a shlistal arius Hourly. Wsp. Lansinalarlywire intu | Irrirrefear NT Fin was amostras atency by populating Besarting the collection and playing | ar erukura y certare Comparable cabac privalry private Stringit public Employer Strings public String till public Streerd public Stringet tell public abstract intamu Salaryll Salaries Hourly arate in salary private double hourly wape publikalaried SSL lengte public Strindary public Hourly Stringn, Stringt double w public String tosin public Strine

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago

Question

Define induction and what are its objectives ?

Answered: 1 week ago