Example of integer input from user
Read moreHow do you calculate gross salary in C++?
Formula’s :- Gross Salary = Basic + Da + Hra + Ma . Deduction = Gross Salary – Pf – Pt – It. Net Salary = Gross Salary – Deduction. Logic:- For finding a gross salary of Employee we need to calculate DA and HRA then Sum Of Basic Salary + HRA + DA.
Read moreHow the PF amount is calculated?
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