CONST MESSAGE = "Enter 1 to search. -1 to quit"
Private sIDs() as integer = {20100, 20101, 20200}
Private anEnglish_Results() = {50, 100, 75}
private anMath_Results() = {72, 90, 83}
private anScience_Results() = {45, 57, 86}
Console.WriteLine("Starting")
Console.WriteLine(MESSAGE)
nOption = Convert.ToInt32(console.ReadLine())
Console.WriteLine(MESSAGE)
nOption = Convert.ToInt32(console.ReadLine())
Public Sub SearchForResult()
Dim userID as integer = console.ReadLine()
Dim studentFound as Boolean = false
For i as integer = 0 to sIDs.GetUpperBound(0)
Dim studentId as Integer = sIDs(i)
If userID = studentId then
console.WriteLine(String.Format("English: {0}", anEnglish_Results(i)))
console.WriteLine(String.Format("Math: {0}", anMath_Results(i)))
console.WriteLine(String.Format("Science: {0}", anScience_Results(i)))
console.WriteLine("ID is not found")