Write a program that calculates the net salary using entered basic salary.

c) Write a program that calculates the net salary using entered basic salary.
Here, D.A.=27%, H.R.A.=10%, P.F.=12% of basic salary; and
M.A.=Rs.100, T.A.=Rs.1600 are fixed and I.T.=Rs.1000.
Net salary = basic salary + (DA+HRA+MA+TA)-(PF+IT)
A program should print the output in the following format only:
ENTER BASIC SALARY (in Rs.) =40000
ALLOWANCES:
D.A. =10800.00
H.R.A. = 4000.00
M.A. = 100.00
T.A. = 1600.00
DEDUCTION:
P.F. = 4800.00
I.T. = 1000.00
--------------------------------------------
NET SALARY = 50700.00

Leave a Reply