Search for question
Question

Taxes: Let's figure out our 2020 taxes right here. The table below is the tax bracket chart for2020 (source: https://taxfoundation.org/2020-tax-brackets/e). Ignore the last column. Write a code that takes an

income value and a marital status (S for single individual, M for married) as given values, and outputs the amount of taxes due. Note how taxes work: you do not pay the listed rate on all of your income, but it is incremental. For example, if you make $30,000 per year as a single individual, you would pay 10% on $9,875, and 12% on the remaining income.

Fig: 1

Fig: 2