Computer Science, asked by meenakshi16101982, 2 months ago

Write a python program to calculate net salary if the user input the basic

salary(basic) and calculate the DA where DA = 10% of basic salary, HRA =10%

of basic salary, total salary(tsalary)=basic +DA+HRA and deduct the 12% PF on

Total salary and net salary=tsalary-PF ​

Answers

Answered by nitishshaw720
8

Answer:

print("SALARY PROGRAM")

name= str(input("Enter name of employee:"))

basic=float(input("Enter Basic Salary :"))

da=float(basic*0.10)

hra=float(basic*0.10)

pf= float(basic*0.12)

netpay=float(basic+da+hra)

grosspay=float(netpay-pf)

print("\n\n")

print("S A L A R Y D E T A I L E D B R E A K U P ")

print("==============================================")

print(" NAME OF EMPLOYEE : ",name)

print(" BASIC SALARY : ",basic)

print(" DEARNESS ALLOW. : ",da)

print(" HOUSE RENT ALLOW.: ",hra)

print("==============================================")

print(" NET SALARY PAY : ",netpay)

print(" PROVIDENT FUND : ",pf)

print("==============================================")

print(" GROSS PAYMENT : ",grosspay)

print("==============================================")

Similar questions