Programming
Write a program that calculates and prints
the take-home pay for a commissioned sales
employee. Allow the user to enter values for the
name of the employee and the sales amount
for the week. Employees receive 7% of the
total sales. Federal tax rate is 18%. Retirement
contribution is 15%. Social Security tax rate is 9%.
Use appropriate constants. Write input, display,
and calculation methods. Your final output should
display all calculated values, including the total
deductions and all defined constants.
name = input("Enter your name: ")
salary = int(input("Enter your salary in USD: "))
commission = salary*(0.07+0.18+0.15+0.09)
take_home_pay = salary - commission
print(take_home_pay)
Comments
Leave a comment