Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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 Include javadoc comments in all Java classes. Your Javadoc comments must be correct and complete and successfully generate an HTML document. Submit the following deliverables on the assignment page on Canvas: 1) 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). 2) An electronic copy of your java files. Your program should not include a package statement. The File Summary below includes the list of Java files for this assignment. Test Data: HourlyEmployee("Morgan, Harry", "Programmer", 30); SalariedEmployee ("Lin, Sally"," Accountant", 52000); SalariedEmployee( "Smith, Mary", "Analyst", 50000); SalariedEmployee ("Bush, Sal", "Manager", 51000); SalariedEmployee("Ali, Sal", "Analyst", 51000); HourlyEmployee ("Aaron, Hana" "Programmer", 25); HourlyEmployee( "Kordi, Harry", "Senior Programmer", 30); HourlyEmployee("Mori, Tom", "Senior Programmer", 33); HourlyEmployee("Farhad, Maria" " "Intern", 20); SalariedEmployee("Bahman, Ana", "Director", 91000); Expected Test Result: This progran is for AC0 192 ProgAssignment1 developed by cnane or nanes of tean menbers? Employee[naneuFarhad, Maria TitteuIntern] HourlyEnployee[sataryu 41740] Employee [nane=snith, Mary Title=Analyst] SalariedErployee[satary=50000] Eipleyee[nane=Ali, Sal Title=Analyst] SalarledEnployee[salary=51000] Eipleyee[nane=Bush, Sal. Title=Hanager] SalariedEmployee[salary=51000] Employee[nane=Lin, Sally Title=Accountant] SalariedEmployce[salary=5200e] Employee[nane=Aaron, Hana Title=Progranner] HourlyEnployeo[salary=52175] Employee[nane=kordi, Harry Title=Senior Progranner] Hourlyemployee[salary=62610] Employee[nane=Morgan, Harry Titte=Progranmer] HourlyEnptoyee[satary=62618] Employee[nane=Mor1, Ton Title=Senior Progranter] HourlyEnployee[salary=68871] Eiployee [nane=Bahnan, Ana Title=Director] SalariedEnployee[salary=91000] Process finished with exit code

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_2

Step: 3

blur-text-image_3

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

Which is the worst idea? Why?

Answered: 1 week ago

Question

Which will you take forward?

Answered: 1 week ago

Question

When are you going to do this?

Answered: 1 week ago