Imports System.Collections.Generic
Console.WriteLine("Write 1 to input test results, 2 to display test results, 3 to search by student ID, -1 to quit program")
Dim option_prompt as string = console.ReadLine()
Convert.toint32(option_prompt)
console.writeline("please work")
If option_prompt = 1 Then
ElseIf option_prompt = 2 Then
ElseIf option_prompt = 3 Then
ElseIf option_prompt = -1 Then
Console.WriteLine("Invalid Input")
Console.WriteLine("Program quit")
Dim number_of_students As Integer = 100
Dim StudentID As New List(Of Integer)
Dim English As New List(Of Integer)
Dim Math As New List(Of Integer)
Dim Science As New List(Of Integer)
Dim student_test_indexer(), student_counter As Integer
Dim current_student_results() As String
Dim test_results As String
Dim valid_results As Boolean = False
Dim is_valid_input = True
Console.WriteLine("Input results for all students (ID, English Score, Math Score, Science code), each seperated by one comma")
While Not (student_counter = 10)
test_results = Console.ReadLine()
current_student_results = test_results.Split(",")
If current_student_results.Length() = 4 Then
For i As Integer = 0 To 3
Convert.ToInt32(current_student_results(i))
If current_student_results(i) < 20 Then
current_student_results(i) = 20
Else if current_student_results(i) > 100 then
If is_valid_input = True Then
StudentID.Add(current_student_results(0))
English.Add(current_student_results(1))
Math.Add(current_student_results(2))
Science.Add(current_student_results(3))
Console.WriteLine("Invalid Input")
Private Sub Display_Data()
Private Sub Search_Data()