|
VB question
private Sub xMainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim inputscore As Integer
Dim score As Integer = 1
Dim scoreCount As Integer
Dim average As String
Dim prompt As Double
Dim title As Integer
Do While inputscore <> String.Empty
If score >= 0 Then
score = inputscore + score
scoreCount = scoreCount + 1
Else
MessageBox.Show(Text, "Total Score", MessageBoxButtons.OK, _
MessageBoxIcon.Information)
End If
inputscore = InputBox(prompt, title, "")
average = score / scoreCount
Loop
I need a little help with this code, want to be able to enter a score from 0 to 10 and then add the total and average out the score. I have total number input box, avg score input and a total score input box. Can someone direct me into the right direction.
Thanks
|