Any help will appreciated. I'm trying to analyze the number of a, b, c, d and e after applying the curve percentage selected by the user.
Here is what I have so far. I'm using for loop and its adding the curves to the grade distribution.
Public Class frmHW13
'Variables
Dim grade As Double
Dim avail As Integer
Dim curved As Integer
Private Sub bntApplyCurve_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bntApplyCurve.Click
If (grade <= 49) Then
txtGrdDist.Text = "E"
ElseIf (grade <= 69) Then
txtGrdDist.Text = "D"
ElseIf (grade <= 79) Then
txtGrdDist.Text = "C"
ElseIf (grade <= 89) Then
txtGrdDist.Text = "B"
ElseIf (grade <= 100) Then
txtGrdDist.Text = "A"
End If
For i As Integer = 0 To lstGradeList.Items.Count - 1
If (CDbl(lstGradeList.Items(i)) = avail) Then
grade = CDbl(lstGradeList.Items(i))
lstGradeList.Items.Add(grade)
End If
Next
' display out put
grade = lstGradeList.Items.Count()
txtGrdDist.Text = CStr(grade + avail)
End Sub
End Class