Jeff runs a local retail store in your neighbourhood. He has contracted you to create an interactive
Question:
Jeff runs a local retail store in your neighbourhood. He has contracted you to create an interactive application that will assist him in increasing staff salaries. Create a class named Details that will contain get and set methods for an employee id number, first name, surname and salary. Include a method called getUpdatedSalary() that will increase the staff members salary by 10%.
In your main class include a static method named printDetails() that will produce an employee details report, also include a static method named salaryDeductions() that will display the employee deductions report if required.
Notes:
Below are the deduction percentages:
Deduction | Percentage |
Tax | 18% |
Medical | 12.5% |
Car Allowance | 8% |
UIF | 2% |
Hint:
You may make use of your own initiative to improve the application and how it works.
Essentials of Business Statistics Communicating With Numbers
ISBN: 978-0078020544
1st edition
Authors: Sanjiv Jaggia, Alison Kelly