How To Calculate Employee Salary and Funds
#EMPLOYEE SALARY AND FUNDS
print('EMPLOYEE SALARY AND FUNDS ')
name=input('Enter Name :- ')
num=int(input('Enter Employee Number : '))
name=input('Enter Your Name -')
Sal=int(input('Enter Salary :-'))
if(Sal<=10000):
da=Sal*30/100
hra=Sal*10/100
gs=Sal+da+hra
pf=gs*12/100
ns=gs-pf
elif(Sal==10001,20000):
da=Sal*40/100
hra=Sal*15/100
gs=Sal+da+hra
pf=gs*12/100
ns=gs-pf
elif(Sal==20001,30000):
da=Sal*50/100
hra=Sal*25/100
gs=Sal+da+hra
pf=gs*12/100
ns=gs-pf
else:
da=Sal*60/100
hra=Sal*35/100
gs=Sal+da+hra
pf=gs*12/100
ns=gs-pf
print (name,'Your net salary is',ns, '\n For:-','\n DA:-',da,'\n HRA:-',hra,'\n Gross Salary:-',gs,'\n Provident Fund:-',pf)
#The Data can be edited as per need.
Made By:-
Nilay Saraf
Comments
Post a Comment