Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab Only Please. Problem 3: (5 Points) Write a function with the header: function [fedTax] myFederalTax(annual!ncome) = which calculates the amount of federal tax owed

Matlab Only Please.image text in transcribed

Problem 3: (5 Points) Write a function with the header: function [fedTax] myFederalTax(annual!ncome) = which calculates the amount of federal tax owed given by a single taxpayer (not married filing jointly) according to the current (2018) federal tax table given below: If your income And less is greater than or equal equal to to this: $0.00 $9,526 $38,701 $82,501 $157,501 $200,001 $500,001 You have a Plus this flat tax of percentage: this: Of the income greater than this: than or this: $9,525 $38,700 $82,500 $157,500 $200,000 $500,000 $0 $952.50 $4,453.50 $14,089.50 | 24% $32,089.50 | 32% $45,689.50 | 35% $150,689.50 | 37% $0 $9,525 $38,700 $82,500 $157,500 $200,000 $500,000 10% 12% 22% The function should round the user's annual income to the nearest dollar. Assume annualIncome is always a scalar. Note the above table is for your taxable income. Test Cases: >format bank >>myFederalTax (40000.77) 4739.72

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is the meaning and definition of E-Business?

Answered: 1 week ago

Question

Describe the seven standard parts of a letter.

Answered: 1 week ago

Question

Explain how to develop effective Internet-based messages.

Answered: 1 week ago

Question

Identify the advantages and disadvantages of written messages.

Answered: 1 week ago