Question: Do it in Java language please Implement a class called Employee. An employce has a name and gets a salary. Every pay pcriod cach employee

Do it in Java language please
Implement a class called Employee. An employce has a name and gets a salary. Every pay pcriod cach 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 ..X C C:PROGRA-1 XINOXS 1UCREAT-11GE200 ABC Payroll Enployee naeohn Broun Employee : John Brown alary before bonus $45000.0 Bonus amount Salary after bonus $46000.0 : $1000.0 Employee Emplo yee name Salary before bonus $65000.0 Bonus anount Salary after bonus $65800.0 : Mary Jane : $800.0 Report End Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
