I need this in Pyhton saw similar entries but they were on C++
In this project, you will calculate someone’s taxes based on their filing status and their income. Thus, you have two different questions and, based on the result of both, you will determine the taxes paid. First, you must determine their filing status: single or married filing jointly. Then you need to determine their income. The chart below will determine the percentage they will pay based on their status and income.
Tax Rate Income Status = Single Status = Married Filing Jointly 10% Up to $9,700 Up to $19,400 12% $9,700 - $39,475 $19,401 - $78,950 22% $39,476 - $84,200 $78,951 - $168,400 24% $84,201 - $160,725 $168,401 - $321,450 32% $160,726 - $204,100 $321,451 - $408,200 35% $204,101 - $510,300 $408,201 – $612,350 37% Over $510,300 Over $612,350 The program will then calculate and display the tax that the person’s tax based on their tax rate percentage. Here is a typical program run.
The sample user input is shown in blue italics. Input: Enter your tax status: single Enter your income: 85000 Output: Your tax amount is $20400
I need help to create an python program that calculates the tax income based on the status. I could figure out how to do when there is only one status like ether of them dont know how to make the program do for different statuses per the user input.
Thank you!
'''
Python version : 2.7
Python program to calculate the tax amount based on income and tax status
'''
# input of tax status
tax_status = raw_input('Enter your tax status(single or married) : ')
# validate tax status
while tax_status.strip().lower() != 'single' and tax_status.strip().lower() != 'married':
print('Invalid value. Tax status can be eiher single or married')
tax_status = raw_input('Enter your tax status(single or married) : ')
#input of income
income = float(raw_input('Enter your income: '))
# validate income > 0
while income <= 0 :
print('Invalid value. Income must be greater than 0')
income = float(raw_input('Enter your income: '))
tax_amount = 0
# calculate tax amount based on tax_status and income
if tax_status == 'single':
if income <= 9700:
tax_amount = (10*income)/100
elif income <= 39475:
tax_amount = (12*income)/100
elif income <= 84200:
tax_amount = (22*income)/100
elif income <=160725:
tax_amount = (24*income)/100
elif income <= 204100:
tax_amount = (32*income)/100
elif income <= 510300:
tax_amount = (35*income)/100
else:
tax_amount = (37*income)/100
else:
if income <= 19400:
tax_amount = (10*income)/100
elif income <= 78950:
tax_amount = (12*income)/100
elif income <= 168400:
tax_amount = (22*income)/100
elif income <=321450:
tax_amount = (24*income)/100
elif income <= 408200:
tax_amount = (32*income)/100
elif income <= 612350:
tax_amount = (35*income)/100
else:
tax_amount = (37*income)/100
# output the tax amount
print('Your tax amount is $%.2f' %(tax_amount))
#end of program
Code Screenshot:


Output:

I need this in Pyhton saw similar entries but they were on C++ In this project,...
Income Concepts (LO. 4) Chelsea, who is single, purchases land for investment purposes in 2014 at a cost of $22,300. In 2019, she sells the land for $35,200. Chelsea's taxable income without considering the land sale is $99,700. What is the effect of the sale of the land on her taxable income, and what is her tax liability Refer to the tax rate schedule for calculations. Round all calculations to two decimal places. Assume a long-term capital gains tax rate...
V. For the year 2019, tax rates and standard deduction in the U.S. are: Marginal Tax Rate Single Returns Joint Returns 10% $0 $9,700 $0 $19,400 12% $9.701 $39.475 $19.401 $78,950 22% $39,476 $84.200 $78,951 $168,400 24% $84,201 $160,725 $168,401 $321,450 33% $160,726 $ 204,100 $321,451 $408,200 35% $204,101-$510,300 $408,201 $612,350 37% $510,301 $612,351 Standard Deduction $12.200 $24.400 Handsome and Beauty are going to get married. Determine, under each scenario below, whether Handsome and Beauty end up with paying a...
Ability-to-Pay Concept (LO. 2) Sheila, a single taxpayer, is a retired computer executive with a taxable income of $121,000 in the current year. She receives $29,400 per year in tax-exempt municipal bond interest. Adam and Tanya are married and have no children. Adam and Tanya's $121,000 taxable income is comprised solely of wages they earn from their jobs. Refer to the tax rate schedule for calculations. Do not round intermediate computations. Round your final answers to two decimal places. Assume...
Arthur and Cora are married and have 2 dependent children. They
have a gross income of $95,730. Their allowable deductions for
adjusted gross income total $5,230, and they have total allowable
itemized deductions of $26,000. The standard deduction for 2019 is
$24,400. Refer to the Tax Rate Schedules to answer the following
questions. Round intermediate computations and final answer to the
nearest dollar. Note: The child tax credit in 2019 is $2,000 per
child.
a. Arthur and Cora's 2019 taxable...
Hongtao is single and has a gross income of $87,200. His
allowable deductions for adjusted gross income are $4,300, and his
itemized deductions are $18,550. The standard deduction for 2019 is
$12,200.
Round all amounts to the nearest dollar. Refer to the Tax Rate
Schedules to answer the following questions.
a. Hangtao's taxable income is $________and his tax liability is
$_______for 2019.
b. If Hongtao has $10,700 withheld from his salary during 2019
then Hongtao has a refund of $________...
Joanne and John are married with 4 children. They are filing
taxes jointly. They have a gross income of $159,147, and they made
the following tax-deductible purchases:
Charitable contributions: $2,660
Medical expenses: $9,375
Student loan interest: $1,158
Compute their final income tax using the information
below.
Round your answer to the nearest dollar.
Standard deduction for married filers: $24400
Married Individuals Filing Joint Returns and Surviving Spouses If Taxable income Is Between: The Tax Due is: 0 - $19,400 10%...
Joanne and John are married with 3 children. They are filing
taxes jointly. They have a gross income of $145,013, and they made
the following tax-deductible purchases:
Charitable contributions: $2,895
Medical expenses: $5,459
Student loan interest: $1,611
Compute their final income tax using the information below.
Round your answer to the nearest dollar.
Standard deduction for married filers: $24400
Married Individuals Filing Joint Returns and Surviving Spouses If Taxable income Is Between: The Tax Due is: 0 - $19,400 10%...
help on this thank you!
Single filers Tax rate Taxable income bracket 10% $0 to $9,700 12% $9,701 to $39,475 22% $39,476 to $84,200 24% $84,201 to $160,725 32% $160,726 to $204,100 35% $204,101 to $510,300 37% $510,301 or more Use the tax table for the 2019 Federal Income Tax for a single filer. The standard deduction for 2019 is $12,200. Compute the total income tax due and the effective tax rate for someone who earns $85,000 during the year....
Tax Accounting
Tax Liability Calculation, Marginal and Average Tax Rates for Various Filing Status (LO. 1) A taxpayer has $93,080 of taxable income for the current year. Determine the total tax, the marginal tax rate, and the average tax rate if the taxpayer is a a. Single individual b. Married couple filing jointly c. Corporation Do not round Intermediate computations. Use the 2019 tax rate schedule. Do not round your intermediate calculations. Round your final answers to two decimal places...
Please solve this for
me and fill the table. Show calculations
5. Use Tax Rate
Schedules. Carson Wentz, of Phildelphia, determined the following
tax information: salary, $144,000; interest earned, $2,000;
qualified retirement plan contribution, $6,000; itemized
deductions, $10,000. Filing single, calculate Carson's taxable
income and tax liability.
Wages, salaries, tips, etc.
Taxable interest (+)
Total income
Adjustments to income: IRA deduction
(-)
Adjusted gross income
Standard deduction (2019) or itemized
deductions (-)
Taxable income
Tax (use 2019 Tax Rate Schedules...