Python Basics : How To Calculate Salary of Employee (with Taxable amount)

Simple Python Program To Calculate Salary of Employee with their certain Taxable amount.
This program allows the user to enter values such as: Name of Employee, Name of the Company, Salary Amount and then calculates the Taxable amount with certain salary condition applied in code & displays the Salary.

Python Code :-

e_name=input("Enter the name of Employee \n")
 c_name=input("Enter the company name \n")
 salary=float(input("Enter the salary of Employee \n"))
 if(salary>50000):
 tax=0.15*salary
 netsalary=salary-tax
 print("The net salary of "+e_name+" worked in " +c_name+ " is",netsalary)
 else:
 netsalary=salary
 print("No taxalbe Amount")
 print("The net salary of "+e_name+" worked in " +c_name+ " is",salary)

Output :-

Leave a Reply

avatar
  Subscribe  
Notify of