Question

Consider the following income tax brackets. Income ($) 0 - 10,000 10,000 - 25,000 Tax 0% 5% on amount exceeding 10,000 $750 +

A code in matlab. (maybe Jammer can answer)?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: If you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc%clears screen
clear all%clears history
close all%closes all files
format long
I=[5000,12000,33000,75000,300000,1000000];
M(:,1)=I(:);
M(1,2)=tax_calculator(5000);
M(2,2)=tax_calculator(12000);
M(3,2)=tax_calculator(33000);
M(4,2)=tax_calculator(75000);
M(5,2)=tax_calculator(300000);
M(6,2)=tax_calculator(1000000);
fprintf('\tIncome\t\tTax\n\n');
for i=1:size(M,1)
fprintf('%8d%10d\n',M(i,1),M(i,2));
end
function y=tax_calculator(x)
y=0;
if(x<=10000)
y=0;
elseif(x<=25000)
y=0.05*(x-10000);
elseif(x<=50000)
y=750+0.08*(x-25000);
elseif(x<=100000)
y=2750+0.1*(x-50000);
elseif(x<=500000)
y=7750+0.15*(x-100000);
else
y=67750+0.25*(x-500000);
end
end

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
A code in matlab. (maybe Jammer can answer)? Consider the following income tax brackets. Income ($)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the following (artificial) marginal tax rate schedule for the personal income tax (PIT). (10) Income...

    Consider the following (artificial) marginal tax rate schedule for the personal income tax (PIT). (10) Income From S0 to $20,000 From $20,000 to $50,000 From $50,000 to $100.000 From $100,000 to $200,000 Greater than $200,000 Tax Rate 0% 10% 20% 30% 40% Create a table like this and fill it in: Income PIT (S) Marginal Tax Average Tax Rate (MTR) (%) Rate (ATR) (%) $40,000 $70,000 S300,000

  • TABLE 2.1 Corporate Tax Rate Schedule + + + + Range of taxable income 0 to...

    TABLE 2.1 Corporate Tax Rate Schedule + + + + Range of taxable income 0 to $ 50,000 50,000 to 75,000 75,000 to 100,000 100,000 to 335,000 335,000 to 10,000,000 10,000,000 to 15,000,000 15,000,000 to 18,333,333 Over 18,333,333 Base tax $ 0 7,500 13,750 22,250 113,900 3,400,000 5,150,000 6,416,667 Tax calculation (Marginal rate X amount over base bracket) (15% X amount over $ 0) (25 X amount over 50,000) (34 X amount over 75,000 amount over 100,000) amount over 335,000)...

  • Please write in MATLAB code Write a program that can calculate the amount of federal tax...

    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...

  • Return Ratios and Leverage The following selected data are taken from the financial statements of Cedar...

    Return Ratios and Leverage The following selected data are taken from the financial statements of Cedar Industries: Sales revenue $663,000 Cost of goods sold 387,000 Gross profit $276,000 Selling and administrative expense 100,000 Operating income $176,000 Interest expense 50,000 Income before tax $126,000 Income tax expense (40%) 50,400 Net income $75,600 Accounts payable $45,000 Accrued liabilities 70,000 Income taxes payable 10,000 Interest payable 25,000 Short-term loans payable 150,000 Total current liabilities $300,000 Long-term bonds payable $500,000 Preferred stock, 10%, $100...

  • The highest federal marginal income tax rates in 2017 and 2018 are 33% in 2017 and...

    The highest federal marginal income tax rates in 2017 and 2018 are 33% in 2017 and 29.6% in 2018 37% in 2017 and 39.6% in 2018 42.3% in 2017 and 39.6% in 2018 39.6% in 2017 and 37% in 2018 Question 2 With a progressive tax structure, which of the following is always true? Income Tax = Taxable Income * Marginal Tax Rate. The marginal tax rate equals the average tax rate. The average tax rate is less than the...

  • How do you fill out the income statement with the information above? Dawson, Inc. Trial Balances...

    How do you fill out the income statement with the information above? Dawson, Inc. Trial Balances Dec 31, 2018 & 2017 Account # Account Description 1000 Cash 1050 Investments - Trading Prior Year Ending - FINAL 31-Dec-2017 Debit Credit 5,785,000 500,000 Current Year Ending - FINAL 31-Dec-2018 Credit 5,210,000 500,000 $ 15,000 3,800,000 5,000 4,900,000 140,000 220,000 1051 1100 1150 1200 1310 1320 1700 3,350,000 40,000 270,000 300,000 118,000 300,000 4,665,000 45,000 80,000 370,000 340,000 130,000 300,000 1720 1730 1810...

  • Scroll down to complete all parts of this task. The following condensed trial balance of Gator...

    Scroll down to complete all parts of this task. The following condensed trial balance of Gator Co., a publicly held company, has been adjusted except for income tax expense. Gator Co. CONDENSED TRIAL BALANCE 12/31/Year 5 12/31/Year 4 Net Balances Balances Change    Dr.(Cr.)       Dr.(Cr.)       Dr.(Cr.)    Cash $   413,000 $   757,000 $(344,000) Accounts receivable, net 670,000 610,000 60,000 Property, plant, and equipment 1,070,000 995,000 75,000 Accumulated depreciation (345,000) (280,000) (65,000) Available-for-sale securities 70,000 60,000 10,000 Dividends payable (25,000) (10,000) (15,000) Income taxes payable...

  • U.S. Corporation Income Tax Return OMB No. 1545-0123 Fam 1120 For calendar year 2019 or tax...

    U.S. Corporation Income Tax Return OMB No. 1545-0123 Fam 1120 For calendar year 2019 or tax year beginning ,2019, ending 20 2019 Dopartment of the Treasury Internal Rovenue Service A Check if: 1a Consolktatod rotum (attach Form 851) b Lifenonlile consol- datod roturm. ► Go to www.irs.gov/Form1120 for instructions and the latost information. Name B Employer identification number ТҮРЕ OR Number, stroet, and room or suite no. If a P.O. box, s0o instructions. C Duto incorporated PRINT 2 Posonal holding...

  • 8 Credits [1] If a taxpayer qualifies for the Earned Income Credit, such credit can be...

    8 Credits [1] If a taxpayer qualifies for the Earned Income Credit, such credit can be subtracted from A. Gross income to arrive at adjusted gross income. B. Adjusted gross income to arrive at taxable income. C. The tax owed, or can result in a refund, but only if the taxpayer had tax withheld from wages. D. The tax owed, or can result in a refund, even if the taxpayer had no tax withheld from wages. [2] Which of the...

  • please answer the following multiple choice Which of the following is the amount the borrower must...

    please answer the following multiple choice Which of the following is the amount the borrower must pay back to the bondholders? 7 A) Market value B) Present value C) Stated interest value D) Principal amount 8. Which of the following describes the term maturity date? A) The date on which each interest payment is made B) The date on which the bond is issued C) The date on which the principal amount is repaid to the bondholder D) The date...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT