Question

plz help with this matlab program

Write program that calculates the total amount of taxes a citizen has to pay based on his/her income. Here is the rule: Feder

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

SAVE BELOW CODE AS taxes.m and run using commands shown in output

Program ask income as input and returns the tax due amount

function tax_due=taxes(income)

% Federal tax calculation
if (income>=0 && income<=8025)
tax_due=0.1*income;
elseif (income>=8026 && income<=32550)
tax_due=0.15*income+802.5;
  
elseif (income>=32551 && income<=78850)
tax_due=0.25*income+4481.25;
  
elseif (income>=78851 && income<=164550)
tax_due=0.28*income+16056.25;
  
elseif (income>=164551 && income<=357700)
tax_due=0.33*income+40052.25;
end

%Social secuirity tax

if(income>97500)
tax_due=tax_due+(0.062*income);
end

% Medicare Tax
tax_due=tax_due+0.0145*income;

end

OUTPUT_------------------------------TEST---------------------CODE

>> tax_due=taxes(97501)
tax_due =    5.0815e+04
>> tax_due=taxes(8021)
tax_due =  918.40
>> tax_due=taxes(32551)
tax_due =    1.3091e+04
>> taxes(164552)
ans =    1.0694e+05
Add a comment
Know the answer?
Add Answer to:
plz help with this matlab program Write program that calculates the total amount of taxes a citizen has to pay based on...
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
  • Calculating Social Security and Medicare Taxes Assume a Social Security tax rate of 6.2% is applied...

    Calculating Social Security and Medicare Taxes Assume a Social Security tax rate of 6.2% is applied to maximum earnings of $118,500 and a Medicare tax rate of 1.45% is applied to all earnings. Calculate the Social Security and Medicare taxes for the following situations If an amount box does not require an entry leave it blank. If required, round your answers to the nearest cent. Cumul Pay Before Current Weekly Payroll Current Gross Pay Year to Date Earnings - Soc...

  • Bianca lives in Arizona and earned $2350$2350 in taxable income this biweekly pay period. The table...

    Bianca lives in Arizona and earned $2350$2350 in taxable income this biweekly pay period. The table shows tax withholdings for a biweekly pay period. Note that in Arizona, individuals elect to withhold a certain percentage of their taxable income; the withholding does not involve tax brackets. Tax Amount Social Security 6.2%6.2% of taxable income Medicare 1.45%1.45% of taxable income Federal income tax withholding $174.70$174.70 plus 22%22% over $1664$1664 State income tax withholding 3.6%3.6% of taxable income Using the table, what...

  • BMX Company has one employee. FICA Social Security taxes are 6.2% of the first $118,500 paid...

    BMX Company has one employee. FICA Social Security taxes are 6.2% of the first $118,500 paid to its employee, and FICA Medicare taxes are 1.45% of gross pay. For BMX, its FUTA taxes are 0.6% and SUTA taxes are 2.9% of the first $7,000 paid to its employee. a. Gross Pay through August $ 5,200 18,900 112,900 Gross Pay for September $ 2,400 2,800 8,700 Compute BMX's amounts for each of these four taxes as applied to the employee's gross...

  • Discuss which payroll taxes are the responsibility of the employee and which are the responsibility of...

    Discuss which payroll taxes are the responsibility of the employee and which are the responsibility of the employer. Be certain to include how you would record these entries. Joe is paid, in cash, $1,000 for the week just ended. Use the following information to determine Joe's take home pay and the total payroll, federal and state, tax expense for the company Joe works for. Federal Income tax              3% of gross pay State Income tax                  2% of gross pay Social Security...

  • Cornerstone Exercise 8-26 Payroll Taxes Hernandez Builders has a gross payroll for January amounting to $500,000....

    Cornerstone Exercise 8-26 Payroll Taxes Hernandez Builders has a gross payroll for January amounting to $500,000. The following amounts have been withheld: Federal income taxes Social Security Medicare $63,000 31,000 7,250 Charitable contributions 1% of gross pay 2% of gross pay Union dues Also, the federal unemployment tax rate is 6.2% and applies to all but $50,000 of the gross payroll. Required: 1. What is the amount of net pay recorded by Hernandez? $ 441,750 x 2. Prepare the journal...

  • Problem 9-3A Payroll expenses, withholdings, and taxes LO P2, P3 Paloma Co. Stars has four employees....

    Problem 9-3A Payroll expenses, withholdings, and taxes LO P2, P3 Paloma Co. Stars has four employees. FICA Social Security taxes are 6.2% of the first $117,000 paid to each employee, and FICA Medicare taxes are 1.45% of gross pay. Also, for the first $7,000 paid to each employee, the company's FUTA taxes are .6% and SUTA taxes are 6.20%. The company is preparing its payroll calculations for the week ended August 25. Payroll records show the following information for the...

  • 5. PAY ROLL PROBLEM      Belinda West has earned gross pay of $420 for the current               ...

    5. PAY ROLL PROBLEM      Belinda West has earned gross pay of $420 for the current                     payroll period. She authorizes a $10.00 per pay period      deduction for health insurance. Belinda also pays 8% for      federal income taxes, 4% for state income taxes and 6.2% of      her salary for social security taxes and 1.45% for medicare      taxes. Assume that Belinda has not reached the base limits      for any tax rate. Also assume the Unemployment Tax...

  • Cornerstone Exercise 8-26 (Algorithmic) Payroll Taxes Hernandez Builders has a gross payroll for January amounting to...

    Cornerstone Exercise 8-26 (Algorithmic) Payroll Taxes Hernandez Builders has a gross payroll for January amounting to $600,000. The following amounts have been withheld: Federal income taxes $76,000 Social Security 37,200 Medicare 8,700 1% of gross pay Charitable contributions 2% of gross pay Union dues Also, the federal unemployment tax rate is 6.2%, and applies to all but $60,000 of the gross payroll. Required: 1. What is the amount of net pay recorded by Hernandez? Federal Unemployment Taxes Expense Social Security...

  • Ursula Lang's cumulative earnings (YTD) before this pay period were $107,200. Her gross pay for this...

    Ursula Lang's cumulative earnings (YTD) before this pay period were $107,200. Her gross pay for this week is $4,500. 1. What is the amount that she will have deducted from this paycheck for Social Security taxes? 2. What is the amount that she will have deducted from this paycheck for Medicare taxes? SOCIAL SECURITY TAX RATE: 6.2% MEDICARE TAX RATE: 1.45% MAXIMUM TAXABLE SALARY: $110,100 Payroll Period Weekly Biweekly Semimonthly Monthly Quarterly Semiannually Annually Daily or miscellaneous (each day of...

  • Lenny Florita, an unmarried employee, works 47 hours in the week ended January 12. His pay rate is $12 pe...

    Lenny Florita, an unmarried employee, works 47 hours in the week ended January 12. His pay rate is $12 per hour, and his wages have deductions for FICA Social Security, FICA Medicare, and federal income taxes. He claims four withholding allowances. Compute his regular pay, overtime pay (Lenny earns $18 per hour for each hour over 40 per week), and gross pay. Then compute his FICA tax deduction (6.2% for the Social Security portion and 1.45% for the Medicare portion),...

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