Answer to Question #269869 in Python for Peaches

Question #269869

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.



1
Expert's answer
2021-11-22T09:54:04-0500
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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS