00:01
Hello, so we need to create a program that would read the grades for a number of students and save them in an array.
00:11
So for this, i'm going to start by asking the user to give some inputs, so enter number of students, and i'm going to read it in the variable number of students.
00:30
Now we can create an array, an int array called grades.
00:45
So int grades equals new int of non -students.
01:03
Now we can create a loop to ask the user for the grades and put them in the arrays.
01:12
So i'm going to create a simple for loop for i.
01:16
Int i equals 0, i is smaller than the number of students and we increase by 1 every time.
01:31
And i also need, we also need to check that the output is valid here.
01:38
But first i'm going to ask the user, enter grade, grade for student and int grade equals extinct.
02:06
And we need to check that this is value, that this is valid.
02:17
So we're going to say if g is smaller, if g is bigger than 100 or g is smaller than 0, then that means we need to repeat the grade.
02:49
So in valid grade, try again.
02:53
And in order to repeat this, i'm going to wrap it in a wild loop.
02:57
So while i'm not valid, and valid i'm going to start it at false, it will be a volume valuable.
03:08
Bollian valid equals false...