dim highestresult as decimal
For i as integer = 0 to 9
Console.WriteLine("Please enter a result of a student (%)")
result(i) = Console.ReadLine()
Console.Writeline("Please enter the name of the student")
name(i) = Console.ReadLine()
avgresult = avgresult + result(i)
If result(i) > highestresult then
highestresult = Result(i)
If result(x) < result(i) then
Console.WriteLine("Average result for the test: " & avgresult / 10 & "%")
Console.Writeline("Highest result for the test: " & x & " % " & "The student who got the highest result: " & y)
Console.Writeline("Lowest result for the test: " & z & " % " & "The student who got the lowest result: " & q)