2 Dimensional Arrays are fairly straight forward
When you define an array, generally you declare the size immediately. If you do not specify the starting cell value, it starts at 0.
For instance:
Dim Arr(10) as String
Arr has 11 cells. 0,1,2...10
I could declare
Dim Arr(1 to 10) as String
Arr now has 10 cells. 1,2,3...10
The same thing goes for declaring a double dimensioned array
Dim Arr(4,1) As Double 'This will be big enough to handle your data
'We can immediately use the values inside
Arr(0,0) = 1.1
Arr(0,1) = 1.2
Arr(1,0) = 1.3 'Etc...
For your program, you want to enter a High and Low value 5 times... So you will want to use a loop to collect data, and at the end of the loop do the summing
Here is an example, that will require you to read the comments and add additional code:
'I am not sure how you are inputting data through the console
'So read the comments carefully, they will instruct you on what code to add
Dim I as Integer = 0
'We will use this to count the passes of the loop AS WELL AS
'determine the cell that we want to store data in
Dim WeatherData(4,1) as Double
'WeatherData(I,0) = Low Temp
'WeatherData(I,1) = High Temp
'Start a Loop here, it will repeat until the "While" condition is met
Do While I < 5
Dim lowVal as Double = 0
Dim highVal as Double = 0
'Add code to wait for Low Input here, (lowVal = Input)
WeatherData(I, 0) = lowVal
'Add code to wait for High Input here, (highVal = Input)
WeatherData(I, 1) = highVal
I = I + 1 'This keeps us from getting stuck in an infinite loop
Loop
'Ok, so now we have all of the weather data
Dim SumLows as Double = 0
Dim SumHighs as Double = 0
For I = 0 to 4
SumLows = SumLows + WeatherData(I, 0)
SumHighs = SumHighs + WeatherData(I, 0)
Next I
'now you have the sum, you can do the average calculation
'and print the data to the console!!
Hope this helps,
Campbell