Question: In java format please implement a class called Employee. An employee has a name and gets a salary. Every pay period each employee gets an

In java format please

implement a class called Employee. An employee has a name and gets a salary. Every pay period each employee gets an additional amount in bonus. In your solution, include a constructor that accepts the name and salary of an employee. Provide a mutator method that accepts the bonus amount and adds it to the salary. Provide necessary accessor methods to return the name, the salary before the bonus was applied, the bonus, and the salary after the bonus has been applied. Write a test class called TestEmployee to produce output similar to the one below.

In java format please implement a class called Employee. An employee has

AS CREA ABC Payroll Employee Employee name : John Brown Salary before bonus : $45000.0 Bonus amount : $1000.0 Salary after bonus : $46000.0 Employee Employee name : Mary Jane Salary before bonus: $65000.0 Bonus amount : $800.0 Salary after bonus : $65800.0 Report End--- Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!