write a java program to find out the total wage of a person if his daily wage of a person if his daily wage is 500 and he works for 6 days
Answers
Answered by
0
Answer:
Given an integer basic and a character grade which denotes the basic salary and grade of a person respectively, the task is to find the gross salary of the person.
Gross Salary: The final salary computed after the additions of DA, HRA and other allowances. The formula for Gross Salary is defined as below:
Gross Salary = Basic + HRA + DA + Allow – PF
Here, HRA = 20% of Basic
DA = 50% of basic
Allow = 1700 if grade = ‘A’
Allow = 1500 if grade = ‘B’
Allow = 1300 if grade = ‘C’
PF = 11% of basic
Examples:
Input: basic = 10000, grade = ‘A’
Output: 17600
Similar questions