WEBVTT

00:01.180 --> 00:06.340
Our second section from BASIX to intermediate JavaScript is almost finished, you have already learned

00:06.340 --> 00:11.230
a lot of things, and before we actually finish this section, it's time to put all the stuff together

00:11.380 --> 00:17.260
that you have learned and do another coding task, which will be more interesting and a bit complicated

00:17.260 --> 00:21.600
because we're going to use in it almost everything from what we have already learned.

00:22.510 --> 00:25.330
OK, let's describe what the task is about.

00:25.490 --> 00:29.260
Suppose that we have four students, John, Bob, Nick and Alex.

00:29.710 --> 00:35.770
They have passed their final exam, which consists of two parts and have got the scores, score one

00:35.770 --> 00:36.610
and score to.

00:37.510 --> 00:43.810
The aim of our task is to evaluate the final scores of the students and output the final result in council.

00:44.620 --> 00:47.350
In order to do that, you need to follow the following steps.

00:48.010 --> 00:51.190
First, you need to create an array and college students.

00:51.700 --> 00:54.370
This array should consist of four different objects.

00:54.550 --> 00:57.100
Those objects should have three properties.

00:57.100 --> 01:00.340
Name score one, score two with the following values.

01:02.140 --> 01:04.920
Next step is about scores and degrees of diploma.

01:05.230 --> 01:10.960
So we suppose that students have a chance to get different degrees of diploma like A, B, C, D, E,

01:11.260 --> 01:14.260
and those degrees are relevant to default passing limits.

01:14.860 --> 01:20.980
So according to that, you need to create two arrays, first one for course and second one four degrees.

01:22.090 --> 01:25.360
The next step is about calculating the total score of the students.

01:25.360 --> 01:31.300
For that, you need to create a simple function which will some discourse score one and two for each

01:31.300 --> 01:31.750
student.

01:32.900 --> 01:38.300
After that starts the main part of our task in this part, I'm not going to give you instructions for

01:38.300 --> 01:39.080
each line of code.

01:39.630 --> 01:44.880
I want you to figure out on your own, use your knowledge of JavaScript and try your best.

01:45.620 --> 01:52.400
So I give you general condition for the first step, which tells us to create function and using it

01:52.400 --> 01:59.300
for loops, if statements and whatever you need in order to figure out which student has passed an exam

01:59.300 --> 02:01.670
and what kind of degree of diploma he has got.

02:02.570 --> 02:06.830
And the last step is to display the final result in council, which should be like this.

02:07.490 --> 02:10.090
So here we see the results for its students.

02:10.100 --> 02:15.830
It tells us, for example, in case of John, that he passed the final exam successfully and he has

02:16.100 --> 02:19.520
93 points and he got diploma with degree eight.

02:20.180 --> 02:25.180
As for Bob, he got 47 points, has failed and has to try next year.

02:26.000 --> 02:27.830
Then we have results for Nick.

02:28.040 --> 02:34.990
He has seventy five points and he got diploma with degrees C and the last student, Alex has eighty

02:35.000 --> 02:37.940
nine points and he got diploma with degree B.

02:39.250 --> 02:41.980
All right, let's all about our task.

02:42.130 --> 02:46.570
Again, I want you to try your best to find the solution, which may be a little bit different than

02:46.570 --> 02:50.860
ours, because JavaScript allows us to get the same results using multiple ways.

02:51.400 --> 02:56.800
But anyway, if you have trouble with doing this task, then don't worry, you will see the solution

02:56.800 --> 02:58.480
of it in the next coming video.

02:59.260 --> 03:01.120
OK, let's go ahead.

03:01.450 --> 03:01.990
Good luck.
