Computer Science, asked by rjha6873, 9 months ago

Write a program to take details of name, age, basic salary of two employees and print the details with Gross Salary where:
--------------------------------------------------------------------------------------------
HRA= 6% of basic salary
DA=45% of basic salary
MA=2.3% of basic salary
IT= 3% of Basic salary
Gross= BASIC+HRA+DA+MA-IT

methods:
--------
input()---->take the details of the employee(name, Age and Basic Salary)
calculate()---->calculate the gross
display()--->show the details

Answers

Answered by thanvic16pgi6010047
0
Ohhhhhh
It is interesting topic
But I have a doubt in this program
So sorry
Answered by swatianurish
0

Answer:

Explanation:

The amount of tax deduction that can be claimed will be the least of the following:

(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.

Basic is either 50% or 60% of the Gross salary and depends if you want to escape from PF liability.. and rest of the entitlements are calculated accordingly.. minus allowable exemptions such as HRA, LTA, conveyance allowance etc.Nov 12, 2011

Logic to find gross salary of an employee

Input basic salary of employee. ...

If basic_salary <= 10000 then, hra = basic_salary * 0.8 and da = basic_salary * 0.2 .

Similarly check basic salary and compute hra and da accordingly.

Calculate final gross salary using formula gross_salary = basic_salary + da + hra .

Similar questions