subject

For this assignment, you are going to enhance the Employee Hierarchy that you created in Programming Assignment 2. The following are the requirements to modify programming Assignment 2: 1) Make the Employee Class an abstract class and declare in it the abstract method earnings().
2) Add the abstract method void raise(double percent) to the Employee class.
3) Implement the raise method in each of the subclasses in the following manner: CommissionEmployee Class - increase the commission rate by the percent specified. Class - increase the commission rate by the percent specified and increase the base salary by the percent specified. SalariedEmployee - increase the salary by the percent specified. HourlyEmployee - increase the hourly wage by the percent specified.
4) In your main method, after the code from Programming Assignment 2, you will add code to polymorphically process an array of Employees to give each employee a raise. You will create a 5 element Employee array and assign each of the 5 employees to an element of the array. You will then write an java enhanced for loop to loop through the array and give each employee a 2 percent raise except SalariedEmployees will be given a 4 percent raise. Print out each employee to show the new information for each employee.
You should use good standard programming practices in all of your coding.
The output from your program should look like the following:
Employee information.
Commissioned Employee: Fred Jones with ssn: 111-11-1111
Gross Sales: 2000.00
Commission Rate: 0.0500
Earnings: $100.00
Base Salary Plus Commissioned Employee: Sue Smith with ssn: 222-22-2222
Gross Sales: 3000.00
Commission Rate: 0.0500
with Base Salary of: $300.00
Earnings: $450.00
Salaried Employee: Sha Yang with ssn: 333-33-3333
Salary: 1150.00
Earnings: $1150.00
Hourly Employee: Ian Tanning with ssn: 444-44-4444
Hourly Wage: 15.00
Hours Worked: 50.00
Earnings: $825.00
Hourly Employee: Angela Domchek with ssn: 555-55-5555
Hourly Wage: 20.00
Hours Worked: 40.00
Earnings: $800.00
Employee information after raises.
Commissioned Employee:
Fred Jones with ssn: 111-11-1111
Gross Sales: 2000.00
Commission Rate: 0.0510
Earnings: $102.00
Base Salary Plus Commissioned Employee: Sue Smith with ssn: 222-22-2222
Gross Sales: 3000.00
Commission Rate: 0.0510
with Base Salary of: $306.00
Earnings: $459.00
Salaried Employee: Sha Yang with ssn: 333-33-3333
Salary: 1196.00
Earnings: $1196.00
Hourly Employee: Ian Tanning with ssn: 444-44-4444
Hourly Wage: 15.30
Hours Worked: 50.00
Earnings: $841.50
Hourly Employee: Angela Domchek with ssn: 555-55-5555
Hourly Wage: 20.40
Hours Worked: 40.00
Earnings: $816.00

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:10
Awould be a misconfiguration of a system that allows the hacker to gain unauthorized access, whereas is a combination of the likelihood that such a misconfiguration could happen, a hacker’s exploitation of it, and the impact if the event occurred.
Answers: 3
question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
Donnie does not have powerpoint. which method would be best for elana to save and share her presentation as is? a pdf a doc an rtf a ppt
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
You know the right answer?
For this assignment, you are going to enhance the Employee Hierarchy that you created in Programming...
Questions
question
Biology, 04.07.2021 19:10
question
Mathematics, 04.07.2021 19:10
question
Social Studies, 04.07.2021 19:10
Questions on the website: 13722362