The employee contributes 12 percent of his or her basic salary along with the Dearness Allowance every month to the EPF account . For example: If the basic salary is Rs. 15,000 per month, the employee contribution shall be 12 % of 15000, which comes to Rs 1800/-. This amount is the employee contribution.
Read moreHow do you write percentages in Java?
How do I convert a number to a percent in Java? int percentage = (1 – fl) * 100; to calculate the percentage.
Read moreHow is PF calculated in Java?
Include appropriate getters and setters method in Employee class. Write the following method in the Employee class: public void calculateNetSalary (int pfpercentage) – This method should take PF percentage as argument. Deduct the PF amount from the salary and set the netSalary.
Read more