I need help writing a program that prompts the user for five grades and then provides the user with an average for all grades entered.
Module Module1
Sub Main()
'Declare Array called AverageGrades with 5 Elements
Dim Grades(5) As String
'Write array elements to screen using For loop
Dim index As Integer
'Write average
Dim Average(1) As Integer
'Loop to have user input array values dynamically
For index = 0 To 4 Step 1
Console.Write("Enter the " & index + 1 & " received grade:")
Grades(index) = Console.ReadLine()
For (**** Not sure)))*** need average!
Next
'Loop to print out array values
Console.WriteLine(vbCrLf & "These are the grades you entered.")
For index = 0 To 4 Step 1
Console.Write(Grades(index) & vbCrLf)
Next
Console.Write(vbCrLf & "Press Enter key to exit")
Console.ReadLine()
End Sub
End Module