Assignment # 4 - private void button1_Click(object sender EventArgs e cfw double TotalIncome Deduction TaxableIncome Tax TotalIncome =

Assignment # 4 - private void button1_Click(object sender...

This preview shows page 1 - 2 out of 2 pages.

private void button1_Click( object sender, EventArgs e) { double TotalIncome, Deduction, TaxableIncome, Tax;
Image of page 1
TotalIncome = double .Parse(textBox3.Text); TaxableIncome = TotalIncome - Deduction; if (checkBox1.Checked) { if (radioButton1.Checked) Deduction = 3900; else Deduction = 6500; } { if (checkBox1.Checked) { if (radioButton2.Checked) Deduction = 6550; else Deduction = 11800; } { if (radioButton1.Checked) { if (TaxableIncome < 22100) Tax = .15 * TaxableIncome; else if (TaxableIncome >= 22100 && TotalIncome < 53500) Tax = (.28 * TaxableIncome + 3315) / 21100; else if (TaxableIncome >= 53500 && TotalIncome < 115000) Tax = (.31 * TaxableIncome + 12107) / 53500; else if (TaxableIncome >= 115000 && TotalIncome < 250000) Tax = (.36 * TaxableIncome + 31172) / 115000; else Tax = (.396 * TaxableIncome + 79772) / 250000;
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '10
  • LI
  • taxableIncome, 500000

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes