Answered step by step
Verified Expert Solution
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.
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.72Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started