End of statement Expected error?

10 pts.
Tags:
Visual Basic 2008
Visual Basic 2008 debugging
Hello All:

   I am writing a program to calculate a tax rate based on a few simple income levels, but I am getting bogged down with the End of Statement error.  I have tried numerous endings except the obvious  am sure.  Can anyone offer some suggestions?  Here is what I have so far!

Private

 

Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click  



Dim TaxableIncome As Double

 

Dim Condition1 As Double

 

Dim Condition2 As Double

 

Dim Condition3 As Double

 

Dim TaxDue As Double

TaxableIncome =

CInt(TaxableIncome) TaxDue =



CInt(TaxableIncome) Condition1 = TaxableIncome <= 20000



' Condition 1 calculates the taxable income if less than 20000'

Condition2 = TaxableIncome <= 50000

'Condition 2 Calculates taxable income if less than 50000'

Condition3 = TaxableIncome > 50000

' Condition 3 calculates taxable income if greater than 50000'

 

If Condition1 the statements executed if condition1 is True  



ElseIf TaxableIncome <= 20000 Then TaxDue = TaxableIncome * 0.02  



ElseIf condition2 Then statements executed if condition2 is True

 

ElseIf (TaxableIncome <= 50000) Then TaxDue = 400 + .025*(TaxableIncome-20000)  



ElseIf Condition3 then statements executed if condition 2 is false

 

ElseIf(TaxableIncome > 50000) Then TaxDue = 1150 + .035*(TaxableIncome-50000)  



ElseIf (TaxableIncome) Then

TaxDue =

CInt(TaxableIncome) & "Total Taxes Due" & TaxDue  



End If

 

End Sub



Thanks, NOG2





Software/Hardware used:
Visual Basics 2008

Answer Wiki

Thanks. We'll let you know when a new response is added.

Please repost your question (without any formatting), and include details about the software you are using (OS and programming language at least).

Thanks.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • FoxVandana
    I can't read this, can you paste in clear text?
    35 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following