It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Need Help making this Program

Moderator: dafunkymunky

Need Help making this Program

Postby daveie on Mon Nov 02, 2009 9:20 pm

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


Dim dblPrice As Double
Dim dblTotal As Double = 0
Dim intAge As Integer
Dim dblAge As Double = 0
Dim inthowmanymembers As Double
Dim strInput As String
Dim intadultsignle As Integer
Dim strFirstName As String
Dim strSecondName As String
Dim strAge As String
Dim intAdultSingle As Integer

Const intSingle = 450
Const intCouple = 850
Const intFamily = 1300

Const intFamilyA = 1300
Const intFmailyB = 850
Const intFamilyC = 450
Const intchild = 150
Const intextrachildren = 150
Const intextrachildren2 = 200


If RadioButton1.Checked Then
dblPrice = intSingle

ElseIf RadioButton3.Checked Then
dblPrice = intCouple
ElseIf RadioButton2.Checked Then
dblPrice = intFamily

End If

strFirstName = InputBox("Enter your first Name", "First Name")
strSecondName = InputBox("Enter your Second Name", "Second Name")
strAge = InputBox("Enter your Age", "Age")

intNumberInClass = CInt(strInput)

While (dblAge > 16)

intAdultSingle = CInt(strInput)

dblTotal = dblTotal + intAge

intCounter = intCounter + 1
End While



End Sub


End Class
daveie
 
Posts: 1
Joined: Mon Nov 02, 2009 9:19 pm

Re: Need Help making this Program

Postby dafunkymunky on Wed Nov 11, 2009 6:45 pm

Err.. What exactly is the program supposed to do?
--------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....
User avatar
dafunkymunky
100+ Club
 
Posts: 183
Joined: Fri Apr 08, 2005 7:32 am
Location: India

Re: Need Help making this Program

Postby n00bl3z on Sat Nov 21, 2009 1:18 am

Could you tell us what the program is supposed to do? It looks like a shopping cart, but i cant tell.
n00bl3z
 
Posts: 4
Joined: Thu Sep 24, 2009 3:29 am


Who is online

Users browsing this forum: No registered users and 8 guests