Untitled
unknown
plain_text
2 years ago
785 B
11
Indexable
#Question 16(a) #Write your name here: Oliwier Nowak print("Net Income= Gross wages - total tax\nTotal tax = (€36800 x 20%) + ((Gross Wages - €36800) 40%) - Tax Credits") wages = int(input("Please enter your annual wages: ")) tax_credits = 1700 cutoff = 36800 def income_tax(wages): if wages <= cutoff: print("You pay no income tax") if wages >= cutoff: print("You will have to pay income tax") income_tax = (36800 * 0.2) + ((wages - 36800)*0.4-1700) percentage = ((income_tax/wages)*100) percentage = round(percentage, 2) print("Your income tax bill is:",income_tax,"€") print("he percentage you lost to tax was:",percentage,"%") print("Welcome to my income tax calculator") income_tax(wages)
Editor is loading...