Our second section from BASIX to intermediate JavaScript is almost finished, you have already learned
a lot of things, and before we actually finish this section, it's time to put all the stuff together
that you have learned and do another coding task, which will be more interesting and a bit complicated
because we're going to use in it almost everything from what we have already learned.
OK, let's describe what the task is about.
Suppose that we have four students, John, Bob, Nick and Alex.
They have passed their final exam, which consists of two parts and have got the scores, score one
and score to.
The aim of our task is to evaluate the final scores of the students and output the final result in council.
In order to do that, you need to follow the following steps.
First, you need to create an array and college students.
This array should consist of four different objects.
Those objects should have three properties.
Name score one, score two with the following values.
Next step is about scores and degrees of diploma.
So we suppose that students have a chance to get different degrees of diploma like A, B, C, D, E,
and those degrees are relevant to default passing limits.
So according to that, you need to create two arrays, first one for course and second one four degrees.
The next step is about calculating the total score of the students.
For that, you need to create a simple function which will some discourse score one and two for each
student.
After that starts the main part of our task in this part, I'm not going to give you instructions for
each line of code.
I want you to figure out on your own, use your knowledge of JavaScript and try your best.
So I give you general condition for the first step, which tells us to create function and using it
for loops, if statements and whatever you need in order to figure out which student has passed an exam
and what kind of degree of diploma he has got.
And the last step is to display the final result in council, which should be like this.
So here we see the results for its students.
It tells us, for example, in case of John, that he passed the final exam successfully and he has
93 points and he got diploma with degree eight.
As for Bob, he got 47 points, has failed and has to try next year.
Then we have results for Nick.
He has seventy five points and he got diploma with degrees C and the last student, Alex has eighty
nine points and he got diploma with degree B.
All right, let's all about our task.
Again, I want you to try your best to find the solution, which may be a little bit different than
ours, because JavaScript allows us to get the same results using multiple ways.
But anyway, if you have trouble with doing this task, then don't worry, you will see the solution
of it in the next coming video.
OK, let's go ahead.
Good luck.