I need help with the code below. I coded using the For..Next statement, now I have to place the For..Next statement with a Do..Loop statement. Can anyone help down the right path? Thank you in advance.
`
Dim strGrades() As String = {"A", "B", "C", "A", "B", "A", "F", "A", "D", "B", "C"}
Dim strSearchFor As String
Dim intCount As Integer
strSearchFor = txtLetterGrade.Text.Trim.ToUpper
intCount = 0
For intSub As Integer = 0 To strGrades.Length - 1
If strGrades(intSub) = strSearchFor Then
intCount = intCount + 1
End If
Next intSub
'Message box that displays the answer from the execution of the For Statement
MessageBox.Show(strSearchFor & " : " &
intCount.ToString,
"Grades", MessageBoxButtons.OK,
MessageBoxIcon.Information)
`