Knowee
Questions
Features
Study Tools

Step 3 (3 pts). Calculate tax amount based on exemption and taxable income (see tables below). Tax amount should be stored as a double and rounded to the nearest whole number using round(). Submit for grading to confirm eight tests pass.Ex: If the input is:20000 23 500 1 400Ex: The additional output is:AGI: $20523Deduction: $12000Taxable income: $8523Federal tax: $852Income Tax for Single Filers$0 - $10000 10% of the income$10001 - $40000 $1000 + 12% of the amount over $10000$40001 - $85000 $4600 + 22% of the amount over $40000over $85000 $14500 + 24% of the amount over $85000Income Tax for Married Filers$0 - $20000 10% of the income$20001 - $80000 $2000 + 12% of the amount over $20000over $80000 $9200 + 22% of the amount over $80000

Question

Step 3 (3 pts). Calculate tax amount based on exemption and taxable income (see tables below). Tax amount should be stored as a double and rounded to the nearest whole number using round(). Submit for grading to confirm eight tests pass.Ex: If the input is:20000 23 500 1 400Ex: The additional output is:AGI: 20523Deduction:20523Deduction: 12000Taxable income: 8523Federaltax:8523Federal tax: 852Income Tax for Single Filers00 - 10000 10% of the income1000110001 - 40000 1000+121000 + 12% of the amount over 100004000140001 - 85000 4600+224600 + 22% of the amount over 40000over 8500085000 14500 + 24% of the amount over 85000IncomeTaxforMarriedFilers85000Income Tax for Married Filers0 - 200001020000 10% of the income20001 - 8000080000 2000 + 12% of the amount over 20000over20000over 80000 9200+229200 + 22% of the amount over 80000

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

To calculate the tax amount based on exemption and taxable income, follow these steps:

  1. First, calculate the Adjusted Gross Income (AGI) by adding the income, exemption, and deductions. In the example given, the AGI would be 20,000(income)+20,000 (income) + 500 (exemption) + 23(deduction)=23 (deduction) = 20,523.

  2. Next, calculate the taxable income by subtracting the standard deduction from the AGI. In this case, the standard deduction is 12,000,sothetaxableincomewouldbe12,000, so the taxable income would be 20,523 - 12,000=12,000 = 8,523.

  3. Now, calculate the federal tax based on the taxable income. According to the tax table for single filers, a taxable income of 8,523fallsinthesecondbracket(8,523 falls in the second bracket (10,001 - 40,000),sothetaxwouldbe40,000), so the tax would be 1,000 + 12% of the amount over 10,000.However,sincethetaxableincomeislessthan10,000. However, since the taxable income is less than 10,000, the tax would be 10% of the income, or $852.3.

  4. Finally, round the tax amount to the nearest whole number using the round() function. In this case, the federal tax would be rounded to $852.

Here is the Python code to perform these calculations:

income = 20000
exemption = 23
deduction = 500
standard_deduction = 12000

# Step 1: Calculate AGI
AGI = income + exemption + deduction

# Step 2: Calculate taxable income
taxable_income = AGI - standard_deduction

# Step 3: Calculate federal tax
if taxable_income <= 10000:
    federal_tax = taxable_income * 0.10
elif taxable_income <= 40000:
    federal_tax = 1000 + (taxable_income - 10000) * 0.12
elif taxable_income <= 85000:
    federal_tax = 4600 + (taxable_income - 40000) * 0.22
else:
    federal_tax = 14500 + (taxable_income - 85000) * 0.24

# Step 4: Round federal tax to nearest whole number
federal_tax = round(federal_tax)

print("AGI: $", AGI)
print("Taxable income: $", taxable_income)
print("Federal tax: $", federal_tax)

This code will output:

AGI: $ 20523
Taxable income: $ 8523
Federal tax: $ 852

This problem has been solved

Solution 2

To calculate the tax amount based on exemption and taxable income, follow these steps:

  1. Calculate the Adjusted Gross Income (AGI) by adding the income and the exemption. In the example given, the AGI would be 20,500+20,500 + 23 = $20,523.

  2. Calculate the Deduction. In the example, the deduction is $12,000.

  3. Subtract the Deduction from the AGI to get the Taxable Income. In the example, the Taxable Income would be 20,52320,523 - 12,000 = $8,523.

  4. Use the Taxable Income to determine the Federal Tax. In the example, since the Taxable Income is 8,523andthefilerissingle,weusethetaxtableforsinglefilers.Accordingtothetable,aTaxableIncomeof8,523 and the filer is single, we use the tax table for single filers. According to the table, a Taxable Income of 8,523 falls in the 00 - 10,000 range, so the Federal Tax is 10% of the Taxable Income. Therefore, the Federal Tax would be 10% of 8,523=8,523 = 852.3.

  5. Round the Federal Tax to the nearest whole number using the round() function. In the example, the Federal Tax would be rounded to $852.

So, the output would be: AGI: 20,523Deduction:20,523 Deduction: 12,000 Taxable income: 8,523Federaltax:8,523 Federal tax: 852

This problem has been solved

Similar Questions

Below is a personal income tax table effective January 2024 Tax Threshold (K) Tax Payable (K) Rate of tax access (%) 12,500 Nil 22 20,000 1,650 30 33,000 5,550 35 70,000 18,500 40 250,000 90,500 42 a) Glen who runs a printing shop earns a profit of K80,000 and received additional rental income of K80,000 and intrests of K15,000 I. What is the assessable amount for tax II. Calculate the amount of tax she’ll pay b) Kila, Ranu and Raka decided to enter into business under a partnership by contributing K20,000, K50,000 and K30,000 respectively I. Calculate the shared profit Kila and Raka received c) Sales results for ANJ Ltd declined over the years due to reduction in production awareness I. How would the management improve the declining situation?

Write a program to calculate the income tax as follows Use the below data to calculate the Income_Tax if(Tax_Income <= 0) # Output : hurray..no income tax Otherwise calculate the Income_Tax as follows if (Gross_Income <= 500000): Income_Tax = (Tax_Income * .1) if (Gross_Income <= 1000000) and (Gross_Income > 500000): Income_Tax = 25000 + ((Gross_Income - 500000)*.2) if (Gross_Income > 1000000): Income_Tax = 75000 + ((Gross_Income - 1000000) *.3) Fill the missing code in the given program to the find income tax. Ded_std, Ded_tot and Tax_Income are already defined the code Sample Input and Output 1: deduction under 80c: 50000 deduction under 80cc: 5000 deduction under HRA: 15000 deduction under Medical: 10000 gross income: 250000 gross income: 250000 total deductions: 230000 income tax: 2000.0 Sample Input and Output 2: deduction under 80c: 5000 deduction under 80cc: 2000 deduction under HRA: 1500 deduction under Medical: 500 gross income: 20000 hurray..no income tax give the programming in python

Fill in the Blank QuestionFill in the blank question.You calculate taxable income by reducing gross income by adjustments, exemptions, and standard or deductions.

You are tasked with creating a Python program to automate income tax calculations based on an employee's annual income. The program should prompt users to input their income details, consider various tax slabs, and calculate the final income tax. Additionally, implement a feature to display a detailed breakdown of the tax calculation, including applicable deductions and exemptions. Design a program that provides an accurate and user-friendly income tax computation.Predefined tax slabs and rate if annual income is :upto 50000, rate = 0.05from 50001 to 100000, rate = 0.1from 100001 to 150000, rate = 0.15from 150001 to 200000, rate = 0.2above 200001, rate 0.25Input Format:In first line, get the name of the employee in string through keyboardIn the second line, get the annual income in float in string through keyboardOutput Format:Display the given details in separate lines."Name:", name of the employee"Annual Income:", annual income"Income Tax:", Calculated income tax based on tax slabSample Input:John60000Sample output:Name: JohnAnnual Income: 60000.0Income Tax: 3500.0

Fill in the Blank QuestionFill in the blank question.For calculating your total tax due, your taxable income is to be used in conjunction with either tax tables or tax rate .

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.