Computer Science, asked by psawant1999, 2 months ago

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 keycomputereducation
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