Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

e. What are the three steps of corporate risk management?

Answered: 1 week ago

Question

BPR always involves automation. Group of answer choices True False

Answered: 1 week ago