CS 432

Assignment 2

ASP.NET

Out 2/7/2008, Due 2/14/2008

Objective(s)

1.     To use ASP.NET server controls with events

2.     To use codebehind along with partial classes

3.  To use CSS to format the page

 

Turn in

1.     This sheet

2.     Screen shots

3.  Your code

 

Create a simplified tax calculation application:

  1. There will be an income section: one button that says “+”, a text box for source of income, a text box for amount.
  2. There will be a itemized deduction section: one button that says “-”, a text box for source of deduction, a text box for amount.
  3. A place (maybe label) to display the items entered.
  4. A button that says “Calculate Tax”
  5. A place (maybe label) to display the tax based on some tax table that you can make up – have at least 4 tax brackets.

Here’s how the program should work. The user will first enter all their income one at a time (e.g., My wages, Interest, Spouse’s wages, Capital gains, etc.). Each time the user enters the source and the amount and clicks the “+” button. In response to this event, you have to add the amount to the total income and display each income on a separate line.

 

When all the income is entered, the user will enter the deductions one at a time (Child care, IRA, Charity, etc.). As before you will keep track of the total deductions and display each deduction on a separate line.

 

Finally, the user will click the “Calculate Tax” button. In response to this, you will subtract the total deductions from the total income and the user’s tax will be displayed. Disallow cases where the deductions are greater than the income.

 

Use CSS to separate the various sections into color coded units.

 

Graduate Students

Enhance the tax calculator to include such things as:

  1. Add a standard deductions section. So users can choose to itemize deductions or take the standard deduction.
  2. The standard deduction is based on if the user is filing as single or married, and the number of children the user has.