Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:30, QueeeenUknown7437
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, jaelynnm
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
image
Computers and Technology, 23.06.2019 21:40, minnie7760
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
image
Computers and Technology, 24.06.2019 07:00, erick7123
Why do we mark tlc plates with pencil and not with pen
Answers: 2
Do you know the correct answer?
For this assignment, you are going to enhance the Employee Hierarchy that you created in Programming...

Questions in other subjects: