Question: Please write in MATLAB code Write a program that can calculate the amount of federal tax a person owes for the upcoming year. After calculating

Please write in MATLAB code

Write a program that can calculate the amount of federal tax a person owes for the upcoming year. After calculating the amount of tax owed, you should report to the user their filing status (single/joint), which tax rate they fell under, as well as the tax owed. Example: As a single filer you fell under 12% tax bracket and you owe $3500. Disclaimer: This example is simplified and is not intended to be an accurate representation of how to calculate your taxes. 1. Your program should ask the user if they are a single filer, or if they will be filing jointly with their spouse. If they file single, ask the user to input their total income for the year. If they file jointly then have the user enter both their income as well as their spouses income. (You can then add the 2 incomes together to obtain gross household income.) 2. Your program should also check to see if the person is eligible for the Earned Income Credit (EIC). EIC eligibility is dependent upon both filing status as well as number of dependents. Therefore, ask the user to enter how many children (dependents) they have. Assume that if the person is eligible then the EIC deducts 8% from the gross income, so that only 92% of the gross income is now taxable. (The EIC will reduce the amount of income which is taxable, but does not change the persons tax bracket. Ex: If the person made $40,000 (single) then they are in the 22% bracket. The EIC makes their taxable income 40,000*0.92 = $36,800. This new total is within the 12% bracket, but the person still owes 22% of the $36,800.

Earned Income Credit Limits

Filing Status Income Limit if No Children Income Limit if 1 Child Income Limit if 2 Children Income Limit if 3+ Children
Single $15,270 $40,320 $45,802 $49,194
Married Joint $20,950 $46,010 $51,492 $54,884

tax bracket for single filers

Tax Rate Taxable Income Bracket Tax Owed
10% $0 to $9,525 10% of taxable income
12% $9,526 to $38,700 $952.50 plus 12% of the amount over $9,525
22% $38,701 to $82,500 $4,453.50 plus 22% of the amount over $38,700
24% $82,501 to $157,500 $14,089.50 plus 24% of the amount over $82,500
32% $157,501 to $200,000 $32,089.50 plus 32% of the amount over $157,500
35% $200,001 to $500,000 $45,689.50 plus 35% of the amount over $200,000
37% $500,001 or more $150,689.50 plus 37% of the amount over $500,000

Tax bracket for joint filers

Tax Rate Taxable Income Bracket Tax Owed
10% $0 to $19,050 10% of taxable income
12% $19,051 to $77,400 $1,905 plus 12% of the amount over $19,050
22% $77,401 to $165,000 $8,907 plus 22% of the amount over $77,400
24% $165,001 to $315,000 $28,179 plus 24% of the amount over $165,000
32% $315,001 to $400,000 $64,179 plus 32% of the amount over $315,000
35% $400,001 to $600,000 $161,379 plus 35% of the amount over $400,000
37% $600,001 or more $161,379 plus 37% of the amount over $600,000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!