Status=int (input (" please choose your identity: 1: taxpayers \ n "))
Income=int (input (" enter your income: "))
Tax=0 if the status==1:
If income<=8350: tax income * 0.1=
Elif
Income<=33950: tax=8350 * 0.15 * 0.1 + (income - 8350)
Elif
Income<=82250: tax=8350 * 0.15 * 0.1 + (33950-8350) + (income - 33950) * 0.25
Elif income<=171550: tax=8350 * 0.15 * 0.1 + (33950-8350) + (82250-33950) + (income - 171550) * 0.28 * 0.25
Elif income<=372950: tax=8350 * 0.15 * 0.1 + (33950-8350) + (82250-33950) * 0.25 + 0.28 + (171550-82250) * (income - 372950) * 0.33
Elif income>=372950: tax=8350 * 0.15 * 0.1 + (33950-8350) + (82250-33950) + (171550-82250) * 0.28 * 0.25 + 0.33 + (372950-171550) * (income - 372950) * 0.35
Print (" should pay taxes and fees for: ", tax)
How to add this code input errors, it means that do not enter 1 will appear error (which is a calculation of taxes and fees)
CodePudding user response: