Tax Calculator program Introduction / Problem Statement Write a python program that calculate tax refund based on steps below, use only functions no objects. Step 1. Calculate the standard deduction....

1 answer below »
Dummy


Tax Calculator program Introduction / Problem Statement Write a python program that calculate tax refund based on steps below, use only functions no objects. Step 1. Calculate the standard deduction. For this problem we are going to assume only two marital status positions. If you are single, you get a $12,200 standard deduction. If you filed married, you get a $24,400 standard deduction. Step 2. Calculate the adjusted gross income. To calculate your taxes owed, you take the wages and subtract the standard deductions. This gives you your adjusted gross income (AGI).  Step 3. Calculate the tax refund or taxes owed. You then use the tables below with the AGI to calculate the taxes.  If the taxes are greater than what was paid, you owe taxes. If the taxes were less, you get a refund. Example First Name = Kevin Last Name = Martin Total Wages = 50000 Taxes Paid = 30000 Marital Status = single Kevin Martin’s refund is going to be $25,658.00! Example First Name = Sarah Last Name = Hayland Total Wages = 25000 Taxes Paid = 1000 Marital Status = single Sarah Hayland still owes $342.00 in taxes!
Answered 12 days AfterJun 07, 2021

Answer To: Tax Calculator program Introduction / Problem Statement Write a python program that calculate tax...

Dhairya answered on Jun 20 2021
157 Votes
f_name = input('First Name ')
l_name = input('Last Name ')
total_wages = int(input('Total Wages ')
)
taxes_paid = int(input('Taxes Paid '))
marital_status = input('Marital Status ')
def calculate_tax(fname, lname, totwages, taxpaid, marital):
applied_tax = 0
fixed_tax = 0
var_tax = 0
if str(marital).lower() == 'single':
totwages = totwages - 12200
if 0 <= totwages <= 9875:
applied_tax = 0.10
var_tax = totwages
elif 9876 <= totwages <= 40125:
fixed_tax = 987.5
applied_tax = 0.12
var_tax = totwages - 9875
elif 40126 <= totwages <= 85525:
fixed_tax = 4617.5
applied_tax = 0.22
var_tax = totwages - 40125
elif 85526 <= totwages <= 163300:
fixed_tax =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here