dim studentname (29) as string
dim smarkstest1 (29) as double
dim smarkstest2 (29) as double
dim smarkstest3 (29) as double
dim stotalscore (29) as double
dim numericcheck as boolean
console.WriteLine("Enter student's name")
studentname(count) = console.ReadLine()
console.WriteLine("Enter marks for test 1, which is out of 20 marks")
smarkstest1(count) = console.ReadLine()
numericcheck= IsNumeric(smarkstest1(count))
smarkstest1(count) = console.ReadLine()
console.WriteLine("Invalid entry of marks. Please try again")
console.WriteLine("Enter marks for test 2, which is out of 25 marks")
smarkstest2(count) = console.ReadLine()
numericcheck= IsNumeric(smarkstest2(count))
smarkstest2(count) = console.ReadLine()
console.WriteLine("Invalid entry of marks. Please try again")
console.WriteLine("Enter marks for test 3, which is out of 35 marks")
smarkstest3(count) = console.ReadLine()
numericcheck= IsNumeric(smarkstest3(count))
smarkstest3(count) = console.ReadLine()
console.WriteLine("Invalid entry of marks. Please try again")
total = smarkstest1(count) + smarkstest2(count) + smarkstest3(count)
stotalscore(count) = total
console.WriteLine("Name of student and their toal marks:")
console.WriteLine(studentname(count))
console.WriteLine(stotalscore(count))