Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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: 3

blur-text-image

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

Fraud Auditing And Forensic Accounting

Authors: Tommie W Singleton, Aaron J Singleton, G Jack Bologna, Robert J Lindquist

4th Edition

047056413X, 9780470564134

More Books

Students also viewed these Accounting questions