AdBlock Detected

We provide high-quality source code for free. Please consider disabling your AdBlocker to support our work.

Buy me a Coffee

Saved Tutorials

No saved posts yet.

Press Enter to see all results

HOW TO CALCULATE ( SALARY OF EMPLOYEE WITH TAXABLE AMOUNT)

By pushpam abhishek
Listen to this article
HOW TO CALCULATE (SALARY OF EMPLOYEE WITH TAXABLE AMOUNT)

This is a simple program to calculate the salary of an employee with the taxable amounts in Python.
The program requires the name of the employee, the name of the company, the salary of the employee.
It will then calculate based on 20% tax rate. If the employee’s salary falls below 10,000, then the employee is not taxed. Else the employee is taxed with 20% deduction.
emp_name = input("Enter the name of the Employee: \n")
comp_name = input("Enter the company name: \n")
salary = float(input("Enter the salary of the Employee: \n"))

if (salary > 10000):
tax = 0.20 * salary
net_salary = salary - tax

print("The net salary of " + emp_name+" in " + comp_name + " is", net_salary)
else:
net_salary = salary

print("Salary is not Taxable")
print("The Net salary of " + emp_name + " in " + comp_name + " is ", salary)

Share this post

pushpam abhishek

About pushpam abhishek

Pushpam Abhishek is a Software & web developer and designer who specializes in back-end as well as front-end development. If you'd like to connect with him, follow him on Twitter as @pushpambhshk

Comments