Dim studentname(10) As String
Dim studentgrade(10) As Decimal
Console.WriteLine("WELCOME TO THE STUDENT GRADING SYSTEM")
Console.WriteLine("PLEASE ENTER GRADES IN BETWEEN 25% and 100%")
Console.WriteLine("Please enter this student's name")
studentname(i) = Console.ReadLine
restart: Console.WriteLine("Please enter this students grade")
studentgrade(i) = Console.ReadLine
If studentgrade(i) < 25 Then
Console.WriteLine("Sorry, This grade is not valid. If you would like to enter the student's grade again please enter [remark]")
remark = Console.ReadLine
If remark = "remark" Then
Console.WriteLine("This student's grade will be deleted and show as 0% on their report")
If studentgrade(i) > 100 Then
Console.WriteLine("Sorry, This grade is not valid. If you would like to enter the student's grade again please enter [remark]")
remark = Console.ReadLine
If remark = "remark" Then
Console.WriteLine("This student's grade will be deleted and show as 0% on their report")
Console.WriteLine(studentname(i) & " =" & studentgrade(i) & "%")
avg = avg + studentgrade(i)
Console.WriteLine("The class average is " & avg & "%")
If studentgrade(i) > HGM Then
Console.WriteLine("The highest mark in this class is " & HGM & "%" & " and the person who got the grade is " & HGMH)
If studentgrade(i) < LWM Then
Console.WriteLine("The lowest mark in this class is " & HGM & "%" & " and the person who got the grade is " & HGMH)