Computer Science, asked by rameshbhangalia408, 4 months ago

7. Write a program in Java to calculate and display the gross salary of an employee by adding
basic pay, house rent allowance (HRA) and conveyance allowance.


No spam Ok​

Answers

Answered by anshika8684
1

Answer:

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

Input: basic = 4567, grade = ‘B’

Output: 8762

Answered by sakshi0424
0

for eg. ----- (Actual rent paid) – (10% of the basic salary) = Rs. 12,000 – (10% of Rs. 23,000) = Rs. 9,700;

or.

Actual HRA offered by the employer = Rs. 15,000; or.

50% of the basic salary = 50% of Rs. 23,000 = Rs. 11,500.

Similar questions