Tax Table Program: Decision Blocks Shown below is the 2001 Federal Income tax table for single taxpayers. This program requires using If-blocks, so study the example programs in the notes on Decisions...


Write a program using if-blocks  that allows the user to input a taxable income value into a text box, and after clicking a button the tax is calculated and displayed in another text box.  Write a function to do the tax calculation.  The answer should be rounded to 2 decimal places.  Your program should calculate the correct tax no matter what the income range.  Use an IF-block to make this work.


Tax Table Program: Decision Blocks<br>Shown below is the 2001 Federal Income tax table for single taxpayers. This program requires using If-blocks, so study the<br>example programs in the notes on Decisions in order to get a good idea of how to complete the program.<br>The program should take an income value as input and calculate and display the tax due. For example, your program interface<br>might look something like this (you have some latitude as to the appearance).<br>Tax calculator<br>58321<br>Input your income<br>Calculate Tax<br>12657.03<br>Tax to be paid<br>Note the lack of dollar signs and commas in the numbers in the above display. The tax calculation is based on the following<br>table.<br>Taxable Income From<br>Up to but not including<br>Tax is<br>$27,050<br>15% of the income<br>$27,050<br>$65,550<br>$4,057.50 + (27.5% of the amount over $27,050)<br>$65,550<br>$136,750<br>$14,654.00 + (30.5% of the amount over $65,550)<br>$136,750<br>$297,350<br>$36,361.00 + (35.5% of the amount over $136,750)<br>$297,350 and up<br>$93,374.00 + (39.1% of the amount over $297,350)<br>For example, if a single person's income is $70,000, then the tax calculation for tax owed would be:<br>14654.00 + (.305 * (70000<br>65550))<br>16011.25<br>-<br>No dollar signs or commas should be used in the numbers of the above calculation.<br>

Extracted text: Tax Table Program: Decision Blocks Shown below is the 2001 Federal Income tax table for single taxpayers. This program requires using If-blocks, so study the example programs in the notes on Decisions in order to get a good idea of how to complete the program. The program should take an income value as input and calculate and display the tax due. For example, your program interface might look something like this (you have some latitude as to the appearance). Tax calculator 58321 Input your income Calculate Tax 12657.03 Tax to be paid Note the lack of dollar signs and commas in the numbers in the above display. The tax calculation is based on the following table. Taxable Income From Up to but not including Tax is $27,050 15% of the income $27,050 $65,550 $4,057.50 + (27.5% of the amount over $27,050) $65,550 $136,750 $14,654.00 + (30.5% of the amount over $65,550) $136,750 $297,350 $36,361.00 + (35.5% of the amount over $136,750) $297,350 and up $93,374.00 + (39.1% of the amount over $297,350) For example, if a single person's income is $70,000, then the tax calculation for tax owed would be: 14654.00 + (.305 * (70000 65550)) 16011.25 - No dollar signs or commas should be used in the numbers of the above calculation.
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here