G
Guest
From the looks of the post this is going to be a remedial question. I am
currently working on my CIS degree and I am in VB.net this semester, so I am
extremely new to all this. I'm trying create a program that will allow me to
average 5 numbers. Right now my calculation code reads as follows
Private Sub btncalculate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btncalculate.Click
Label7.Text = Val(txtscore1.Text) + (txtscore2.Text) _
+ (txtscore3.Text) + (txtscore4.Text) _
+ (txtscore5.Text) \ 5
However it will come out with the wrong average. If I take out the \ 5 ; it
will add everything perfect, so my question is how do I get it to divide. Any
help will be appreciated.
Thanks,
Ryan
currently working on my CIS degree and I am in VB.net this semester, so I am
extremely new to all this. I'm trying create a program that will allow me to
average 5 numbers. Right now my calculation code reads as follows
Private Sub btncalculate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btncalculate.Click
Label7.Text = Val(txtscore1.Text) + (txtscore2.Text) _
+ (txtscore3.Text) + (txtscore4.Text) _
+ (txtscore5.Text) \ 5
However it will come out with the wrong average. If I take out the \ 5 ; it
will add everything perfect, so my question is how do I get it to divide. Any
help will be appreciated.
Thanks,
Ryan