Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Both employee and employer must contribute a certain percentage of the employees salary toward Employees' Provident Fund. The percentage of the contribution is shown
1. Both employee and employer must contribute a certain percentage of the employees salary toward Employees' Provident Fund. The percentage of the contribution is shown below: Employees Age Employee Rate (%) Employer Rate (%) 55 and below 20 17 Above 55 to 60 13 13 Above 60 to 65 7.5 9 Above 65 5 7.5 However, the contribution is subjected to a salary ceiling of RM10,000. In other words, if an employee earns RM10,500, only RM10,000 attracts employee's and employer's contributions, the remaining RM500 does not. Write a program that can calculate the employee's, employer's and total contributions (all amounts must be rounded to 2 decimal places). Your program must be able to repeatedly perform the calculations until the user enters -1 for the salary. An example of the programs running is given below (Note: The bold texts below are inputs entered by the user)
programming language : Java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started