School of Engineering and Applied Science
Department of Computer Science
CSci 49 -- Introduction to C Computing
http://www.seas.gwu.edu/~csci49/spring06
Prof. Michael B. Feldman
mfeldman@gwu.edu

Project #3
Due Date: Start of lecture, Thursday, Feb. 23, 2006

Problem Specification:

It's income-tax season, so this project focuses on taxes. The Federal tax system is "progressive": your tax rate increases as your taxable income increases. Here's the 2005 rate table for unmarried taxpayers:

TAXABLE INCOME

 

MORE THAN

NOT MORE THAN

AMOUNT OF TAX

$0

$2,650.00

$0.00 plus
0.0% of amount over $0.00

2,650.00

9,800.00

0.00 plus
10.0% of amount over 2,650.00

9,800.00

31,500.00

715.00 plus
15.0% of amount over 9,800.00

31,500.00

69,750.00

3,970.00 plus
25.0% of amount over 31,500.00

69,750.00

151,950.00

13,532.50 plus
28.0% of amount over 69,750.00

151,950.00

328,250.00

36,548.50 plus
33.0% of amount over 151,950.00

328,250.00

AND OVER

94,727.50 plus
35.0% of amount over 328,250.00



As you can see from this table, these are "marginal" rates: different "chunks" of your income are taxed at different rates. For example, if your taxable income is $50,000, the chunk between $31,500 and $50,000 is taxed at $25%; the chunk between $9800 and $31,500 is taxed at 15%, etc.

In this project, you are to develop a program that prompts the user for a floating-point value that represents taxable income, then calculates and displays the amount of tax and the net income after taxes. Build the above tax table into your program as a nested if structure.

What to submit:

You must follow the process given in Systematic Software Development. Submit Your grade will be calculated on a 20-point basis, as follows:

Extra credit bonus:

This extra credit bonus is to provide an incentive for starting your project early in the week.If you e-mail your "framework" listing file to Prof. Feldman, and the time stamp on the e-mail is no later than 5 PM, Monday, Feb. 20, 2006, you will be awarded 2 extra project points. The "framework" must be a listing (.txt) file, with no compilation errors, that contains the declared variables, and a set of comments inserted for the main algorithm steps.  E-mail the file as you did the survey form, e.g., pine mfeldman <IncomeTax.txt

MBF 2/13/06