Write input, display,
and calculation methods. Your final output should
display all calculated values, including the total
deductions and all defined constants
#this code is used to find deductions and constants of a company, it calculates salary of individual worker
#input is used to enter name of worker
write_name = input("What is your name: ")
amount_salary = int(input("Enter your salary: "))
#all your deductions, and constants
salary_commission = amount_salary*(0.09+0.15+0.16+0.08)
your_salary = amount_salary - salary_commission
print("Your salary is: ", your_salary)
Comments
Leave a comment