Write a program in Python to input the name , age and basic salary of an employee. Calculate the total salary of the employee by adding the 12% DA and 15% HRA to the basic salary.
Answers
Answered by
2
Answer:
print("SALARY PROGRAM")
name= str(input("Enter name of employee:"))
age = int(input("Enter your age :"))
basic=float(input("Enter Basic Salary :"))
da=float(basic*0.12)
hra=float(basic*0.15)
netpay=float(basic+da+hra)
print(" NAME OF EMPLOYEE : ",name)
print(" BASIC SALARY : ",basic)
print(" DEARNESS ALLOW. : ",da)
print(" HOUSE RENT ALLOW.: ",hra)
print(" NET SALARY PAY : ",netpay)
Similar questions
Hindi,
1 month ago
English,
1 month ago
Art,
2 months ago
Environmental Sciences,
2 months ago
Political Science,
9 months ago
Science,
9 months ago