Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
646 B
1
Indexable
Never
"""
Program:  taxes.py
Author: Justin Merwin
Purpose: Estimate estimated taxes using input from the user.
"""

# Gathering inputs

name = input("What is your name:")
grossIncome = float(input("Gross Income:"))
stateTax = float(input("State tax rate:"))

# Convert stateTax% into a decimal.

taxPercent = stateTax * 0.01

# Declaring variables.

FEDERAL_TAX = grossIncome * 0.0945
FICA_TAX = grossIncome * 0.0765 
STAXES = grossIncome * taxPercent
estimatedTaxes = FEDERAL_TAX + FICA_TAX + STAXES

#Begin output

print("Hello", name)
print("Your gross income is:", round(grossIncome, 2))
print("Your estimated taxes are", round(estimatedTaxes, 2))