dim inning = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 110}
dim inning1 = {38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148}
dim inout = {"out", "in", "out", "in", "out", "in", "out", "in", "out", "in", "out", "in", "out", "in", "out", "in", "out", "in", "out", "in", "out", "in"}
dim batsmanHigh1 as string
dim batsman1() as string = {"Bob", "Jim", "Tim", "Tom", "John", "Barry", "Shaquile", "Opel", "Kacey", "Jake", "Callum"}
dim score1(0 to 10) as integer
Console.WriteLine("Input the first teams name")
team1 = Console.ReadLine()
Console.WriteLine("Input the second teaams name")
team2 = Console.ReadLine()
dim batsmanHigh as string
dim batsman2(0 to 10) as string
dim batsman(0 to 10) as string
dim score(0 to 10) as integer
batsman2(0) = "Steve Smith"
batsman2(1) = "David Warner"
batsman2(2) = "Aaron Finch"
batsman2(3) = "Pat Cummins"
batsman2(4) = "Glenn Maxwell"
batsman2(5) = "Matthew Wade"
batsman2(6) = "Mitchell Starc"
batsman2(7) = "Alex Carey"
batsman2(7) = "Nathan Lyon"
batsman2(8) = "Marcus Stoinis"
batsman2(9) = "Adam Zampa"
batsman2(10) = "Kane Richardson"
batsman(0) = "Jonny Bairstow"
batsman(2) = "Eoin Morgan"
batsman(4) = "James anderson"
batsman(6) = "Tom Banton"
batsman(7) = "Dominic Bess"
batsman(8) = "Sam Billings"
batsman(9) = "James Bracey"
batsman(10) = "Danny Briggs"
batsmanHigh1 = batsman1(x)
Console.WriteLine(team1 & " " & batsman(0) & " " & score(0))
Console.WriteLine(team1 & " " & batsman(1) & " " & score(1))
Console.WriteLine(team1 & " " & batsman(2) & " " & score(2))
Console.WriteLine(team1 & " " & batsman(3) & " " & score(3))
Console.WriteLine(team1 & " " & batsman(4) & " " & score(4))
Console.WriteLine(team1 & " " & batsman(5) & " " & score(5))
Console.WriteLine(team1 & " " & batsman(6) & " " & score(6))
Console.WriteLine(team1 & " " & batsman(7) & " " & score(7))
Console.WriteLine(team1 & " " & batsman(8) & " " & score(8))
Console.WriteLine(team1 & " " & batsman(9) & " " & score(9))
Console.WriteLine(team1 & " " & batsman(10) & " " & score(10))
Console.WriteLine(team2 & " " & batsman1(0) & " " & score1(0))
Console.WriteLine(team2 & " " & batsman1(1) & " " & score1(1))
Console.WriteLine(team2 & " " & batsman1(2) & " " & score1(2))
Console.WriteLine(team2 & " " & batsman1(3) & " " & score1(3))
Console.WriteLine(team2 & " " & batsman1(4) & " " & score1(4))
Console.WriteLine(team2 & " " & batsman1(5) & " " & score1(5))
Console.WriteLine(team2 & " " & batsman1(6) & " " & score1(6))
Console.WriteLine(team2 & " " & batsman1(7) & " " & score1(7))
Console.WriteLine(team2 & " " & batsman1(8) & " " & score1(8))
Console.WriteLine(team2 & " " & batsman1(9) & " " & score1(9))
Console.WriteLine(team2 & " " & batsman1(10) & " " & score1(10))
Console.WriteLine("The lowest score for team 1 was: " & low1)
Console.WriteLine("The lowest score for team 2 was: " & low)
Console.WriteLine("Highest score for England: " & max & " by " & batsmanHigh)
Console.WriteLine("Highest score for Australia: " & max1 & " by " & batsmanHigh1)
total = score(0) + score(1) + score(2) + score(3) + score(4) + score(5) + score(6) + score(7) + score(8) + score(9) + score(10)
total1 = score1(0) + score1(1) + score1(2) + score1(3) + score1(4) + score1(5) + score1(6) + score1(7) + score1(8) + score1(9) + score1(10)
avg1 = Math.Round(avg1, 1)
Console.WriteLine("The average score for team 1 was: " & avg)
Console.WriteLine("The average score for team 2 was: " & avg1)
avg2 = inning(0) + (inning(1) + inning(2) + inning(3) + inning(4) + inning(5) + inning(6) + inning(7) + inning(8) + inning(9) + inning(10))/10
Console.WriteLine(batsman(0) & "innings average: " & avg2)