HOW TO CALCULATE ( SALARY OF EMPLOYEE WITH TAXABLE AMOUNT)

HOW TO CALCULATE ( SALARY OF EMPLOYEE WITH TAXABLE AMOUNT), Employee with Taxable Amount in Python
Share it:
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 it:

python

Post A Comment:

0 comments: