Question: 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.Matlab Only Please. Problem 3: (5 Points) Write a function with the

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

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!