ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 27 Apr 2017 My Price 8.00

The IRS 1040 EZ form

The IRS 1040 EZ form is for people with no itemized deductions filing as single or married couple.The deduction is calculated based on these rules:If someone can claim you as depend on their return, then the deduction is 3900 for single and 6550 for married; otherwise the deduction is 6550 for single and 11800 for married.The taxable income is computed by the formula: taxable income = total income – deduction.The tax is calculated based on the filing status and taxable income.The tax rate schedules for single filing status are:

Create the form as below and use the button’s click event to compute the tax.  The textbox for deduction, taxable income and tax should be read-only.  Test your program with these inputs:

(1)   Single, total income 75000 and is a dependent of some people.  The tax should be 17563.

(2)   Married, total income 95000 and is not a dependent.  The tax should be 18499.

 

My code won't execute the program

double incometotal, deduction, incometaxable, tax;
incometotal = double.Parse(textBox3.Text);
incometaxable = incometotal-deduction;   THIS LINE IS WRONG
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 (incometaxable else if (incometaxable >= 22100 && incometotal tax = (.28 * incometaxable + 3315) / 21100;
else if (incometaxable >= 53500 && incometotal tax = (.31 * incometaxable + 12107) / 53500;
else if (incometaxable >= 115000 && incometotal tax = (.36 * incometaxable + 31172) / 115000;
else
tax = (.396 * incometaxable + 79772) / 250000;
}
{
if (radioButton2.Checked)
{
if (incometaxable else if (incometaxable >= 36900 && incometotal tax = (.28 * incometaxable + 5535) / 36900;
else if (incometaxable >= 89150 && incometotal tax = (.31 * incometaxable + 20165) / 89150;
else if (incometaxable >= 140000 && incometotal tax = (.36 * incometaxable + 35928.5) / 140000;
else
tax = (.396 * incometaxable + 75528.5) / 250000;

textBox4.Text = deduction.ToString();
textBox5.Text = tax.ToString();
}
}
}
}
}

 

I wanna know what I did wrong

Answers

(11)
Status NEW Posted 27 Apr 2017 05:04 AM My Price 8.00

-----------

Attachments

file 1493269374-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)