Answer:
Step-by-step explanation:
The following Python code asks the user for their yearly income as an input, saves it into a variable called income. Then it analyzes that value and outputs their correct Tax Bracket using IF statements. Then it calculates the amount of tax they must pay and outputs that value.
income = input("Enter your yearly income: ")
if int(income) < 50000:
print("You are in Tax Bracket 1")
elif (int(income) >= 50000) and (int(income) <= 99999.99):
print("You are in Tax Bracket 2")
else:
print("You are in Tax Bracket 3")
tax = int(income) * 0.15
print("You need to pay a total of $" + str(tax) + " in income tax")