Let's see how I'm going to solve this particular assignment.
Okay.
So here I need to deduce what kind of data that we are supposed to get from this question.
When I read this kind of question, it says that one, if your total final examination is more than
80%.
So here, let me clear a solution.
So I can I can rewrite this sentence using code, like, say, declare a verb and say total score.
Is equal to 80%.
That's right, 80.
If we you at 80% going to be 0.8.
So let's use the number, whether 0.8 or eight.
So I think it's better to use 0.8 because 80% is equal to 0.8.
Right.
Okay.
So now I have my Twitter score, which is 80 0.8%.
And this question is.
So I'll come here and say that message to.
Print is how it is from this question.
So message number one is print a message.
You qualify for full scholarship.
So from here, print a message, you qualify for full scholarship.
So here is my first message.
So I will declare a variable and say let's mean success message, because your own success message and
message for message is equal to because it's a string of put them in double code or single code.
Then I have my success message as that.
Then next one is also print.
You got partial scholarship.
So here, let's.
Is it failed to fail.
My message is also equal to code.
Then copy this one.
You got partial scholarship, not failure, but okay.
Whatever.
Because you want full you got partial isn't filled by work.
So now I got my data that I want to make condition with.
So here, because we want to pass in a dynamic score of a student.
So let's say last day I see that lets student.
Let student.
Students score.
Now is equal to this.
The person got, let's say, 85%.
So you're going to be 0.85%.
So now the first statements we hear.
Message to print will be here.
Yes.
And then the.
He are going to be the.
Student.
Score will be here.
So with this one, I go to write some logic out of this question.
So here comes the implementation.
So if I more time, the students score.
Students score.
H Is it more than the total score that we experience?
If that is the case, meaning this one is true, in case it's true, then we can console.log.
What?
Success message.
Then we can console.log the success message.
Errors.
If your score is not, it's no more than total score.
Then you can say you can copy the same concert log, change the message and use failure.
So when I save it before we get the answer, so let me comment out this one from here because I want
to see multiple console.log.
So before I save it, what message will print again?
Let's go again.
You can see that the student score, which is 85%, is more than total score, which is 80%.
So this code will run that a I think so.
We have to change this one.
So it may say you qualify.
Yeah.
So you qualify and yeah.
Yeah when I save it.
Now you see we have you qualify for full scholarship but if I change the student score from here to
say 50% when I save it.
Oh we are sorry you got your scholarship.
So we don't have the right way to go by this.
But this is the way how we can deduce some logic out of the code to write some programming code to make
some logic as we have done.
In this particular exercise, if able to get it.
Bravo.
If you couldn't.
Don't worry.
With time, you're going to get it.
Ask questions and practice.