Question: Write a function with the header function [fedTax] = myFederalTax (annua!Income) which calculates the amount of federal tax owed given by a single taxpayer (not
Write a function with the header function [fedTax] = myFederalTax (annua!Income) 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: f your income And less You have a Plus this is greater than or equal equa to of the income greater than this: than or flat tax of percentage: this: to this $0.00 9, 526 $38,701 $82,501 $157,501 $200, 001 $500,001 this: 9, 525 38,700 $82,500 $157, 500 $200,000 500,000 s0 108 12% 22% 952.50 $4,453.50 $14,089.50 |24% $32,089.50 132% $45,689.50 135% $150, 689.50 375 $0 9, 525 38, 700 $82,500 157, 500 $200, 000 $500, 000 The function should round the user's annual income to the nearest dollar. Assume annual Income is always a scalar. Note the above table is for your taxable income
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
