00:02
So they ask us which of the following would enable us to store high and low temperatures for each day in one full week? well, okay, let's make a specification.
00:13
Seven days, a high and a low temperature.
00:17
So we could organize that.
00:19
We need to be able to source seven days, and for each of those, we should have two values for high and low.
00:27
So let's see, we could do an integer right with, let's see, two dimensions.
00:37
So we can call it temps.
00:41
And what's the syntax for that? we're going to create a new, what type, integer, right? with seven rows and two columns.
00:56
And let's see, what are the issues with the ones they've given to us? well, the first one is actually a list of variables.
01:04
They have like temp, something like temp low one, high one, and then they'll do temp low two all the way to the end.
01:19
Well, what are they doing here? they're not specifying in a number.
01:22
Array like officially right they're just creating 14 variables they're not using the syntax for an array so really with this syntax the reader wouldn't think you have the promise to use array syntax on these variables or anything else like that our array algorithms so let's see that one's no good for us based on those what about they create an array like this int 7 -2 let's see for the temp.
02:02
Okay.
02:04
They do int temp 7 .2.
02:07
So this is a problem because they're trying to declare the size with it, but you're not supposed to.
02:13
You're only supposed to declare the size when you allocate memory for it.
02:19
So you're supposed to leave this blank.
02:21
Okay, you'll probably get a compiler error in z sharp.
02:24
So that's also no good.
02:28
What else can we look at? it looks like they reverse when they place their identifier.
02:38
Remember this never works in z sharp.
02:41
Sharp...