Dim highInteger As Integer Dim lowInteger As Integer Dim enteredInteger As Integer Dim countA As Integer Dim countB As Integer Dim countC As Integer Dim countD As Integer Dim countF As Integer 'High and Low Score Code If enteredInteger > highInteger Then highInteger = enteredInteger highTextBox.Text = highInteger.ToString() End If If enteredInteger <= 100 Then lowInteger = enteredInteger lowTextBox.Text = lowInteger.ToString() End If 'Grade Distribution Label Code gradesLabel.Text = "A's" & " " & countA.ToString() & " " & " " & "B's" & " " & countB.ToString() & " " & " " & "C's" & " " & countC.ToString() & " " & " " & "D's" & " " & countD.ToString() & " " & " " & "F's" & countF.ToString() If enterButton.Enabled = True Then End If If enteredInteger >= 90 Then countA = countA + 1 Else If enteredInteger >= 80 And enteredInteger < 90 Then countB = countB + 1 Else If enteredInteger >= 70 And enteredInteger < 80 Then countC = countC + 1 Else If enteredInteger >= 60 And enteredInteger < 70 Then countD = countD + 1 Else countF = countF + 1 End If End If End If End If
By the way, just noticed that my low score code is completely off. I know, I know. It's essentially stating that any number less than or equal to 100 is the low score, which is obviously not what I am looking for. I just put that there temporarily because I was tired of seeing "0" or nothing. My original low score code looked like this:
If enteredInteger < lowInteger Then lowInteger = enteredInteger lowTextBox.Text = lowInteger.ToString()

New Topic/Question
This topic is locked



MultiQuote









|