dim min1 as integer = 101
dim min2 as integer = 101
dim min3 as integer = 101
dim found as boolean = false
console.WriteLine("how many results will be entered?")
console.WriteLine("please enter your data")
num1(x) = console.ReadLine()
parts = num1(x).split(",")
console.WriteLine("data set must include four items")
num1(x) = console.ReadLine()
parts = num1(x).split(",")
while parts(1) > 100 or parts(2) > 100 or parts(3) > 100 or digits > 5 or digits < 5
console.WriteLine("please enter valid data")
num1(x) = console.ReadLine()
parts = num1(x).split(",")
console.WriteLine("value cannot be under 20, your data is being evaluated as 20")
console.WriteLine("value cannot be under 20, your data is being evaluated as 20")
console.WriteLine("value cannot be under 20, your data is being evaluated as 20")
Console.WriteLine("{0,-8}{1,-10}{2,-8}{3,-8} ", "ID", "English", "Maths", "Science")
parts = num1(x).split(",")
Console.WriteLine("{0,-8}{1,-10}{2,-8}{3,-8} ", parts(0), parts(1), parts(2), parts(3))
Console.WriteLine("{0,-8}{1,-10}{2,-8}{3,-8} ", "max", max1, max2, max3)
Console.WriteLine("{0,-8}{1,-10}{2,-8}{3,-8} ", "min", min1, min2, min3)
Console.WriteLine("{0,-8}{1,-10}{2,-8}{3,-8} ", "ave", ave1, ave2, ave3)
console.writeLine("would you like to search for a student's results? 1=yes, 2=no.")
console.WriteLine("which student's values would you like to see?")
search=console.ReadLine()
for x = 1 to num1.length - 1
parts = num1(x).split(",")
if parts(0) = search then
console.WriteLine("data found")
console.WriteLine(num1(x))
console.WriteLine("data not found, please enter student ID again.")
console.writeLine("would you like to search for a student's results? 1=yes, 2=no.")