1
00:00:02,370 --> 00:00:07,410
Let's see how I'm going to solve this particular assignment.

2
00:00:08,280 --> 00:00:09,230
Okay.

3
00:00:09,240 --> 00:00:18,060
So here I need to deduce what kind of data that we are supposed to get from this question.

4
00:00:18,480 --> 00:00:27,000
When I read this kind of question, it says that one, if your total final examination is more than

5
00:00:27,000 --> 00:00:27,940
80%.

6
00:00:27,960 --> 00:00:31,440
So here, let me clear a solution.

7
00:00:32,600 --> 00:00:41,780
So I can I can rewrite this sentence using code, like, say, declare a verb and say total score.

8
00:00:44,610 --> 00:00:48,270
Is equal to 80%.

9
00:00:48,300 --> 00:00:49,440
That's right, 80.

10
00:00:50,060 --> 00:00:53,430
If we you at 80% going to be 0.8.

11
00:00:54,810 --> 00:00:57,930
So let's use the number, whether 0.8 or eight.

12
00:00:57,990 --> 00:01:02,170
So I think it's better to use 0.8 because 80% is equal to 0.8.

13
00:01:02,190 --> 00:01:02,700
Right.

14
00:01:03,240 --> 00:01:03,770
Okay.

15
00:01:03,780 --> 00:01:08,730
So now I have my Twitter score, which is 80 0.8%.

16
00:01:09,570 --> 00:01:11,040
And this question is.

17
00:01:11,160 --> 00:01:15,180
So I'll come here and say that message to.

18
00:01:15,860 --> 00:01:19,190
Print is how it is from this question.

19
00:01:19,280 --> 00:01:24,800
So message number one is print a message.

20
00:01:24,800 --> 00:01:27,280
You qualify for full scholarship.

21
00:01:27,290 --> 00:01:32,510
So from here, print a message, you qualify for full scholarship.

22
00:01:33,170 --> 00:01:35,480
So here is my first message.

23
00:01:35,480 --> 00:01:45,710
So I will declare a variable and say let's mean success message, because your own success message and

24
00:01:45,710 --> 00:01:52,610
message for message is equal to because it's a string of put them in double code or single code.

25
00:01:52,640 --> 00:01:57,710
Then I have my success message as that.

26
00:01:58,280 --> 00:02:01,580
Then next one is also print.

27
00:02:01,580 --> 00:02:03,380
You got partial scholarship.

28
00:02:03,380 --> 00:02:05,600
So here, let's.

29
00:02:06,720 --> 00:02:09,900
Is it failed to fail.

30
00:02:10,630 --> 00:02:15,390
My message is also equal to code.

31
00:02:15,420 --> 00:02:17,370
Then copy this one.

32
00:02:17,730 --> 00:02:21,930
You got partial scholarship, not failure, but okay.

33
00:02:21,960 --> 00:02:22,620
Whatever.

34
00:02:22,620 --> 00:02:26,720
Because you want full you got partial isn't filled by work.

35
00:02:26,880 --> 00:02:30,510
So now I got my data that I want to make condition with.

36
00:02:31,170 --> 00:02:38,550
So here, because we want to pass in a dynamic score of a student.

37
00:02:38,880 --> 00:02:42,780
So let's say last day I see that lets student.

38
00:02:44,540 --> 00:02:45,890
Let student.

39
00:02:47,460 --> 00:02:48,660
Students score.

40
00:02:50,090 --> 00:02:51,350
Now is equal to this.

41
00:02:51,350 --> 00:02:55,790
The person got, let's say, 85%.

42
00:02:55,790 --> 00:02:59,540
So you're going to be 0.85%.

43
00:02:59,960 --> 00:03:02,480
So now the first statements we hear.

44
00:03:03,210 --> 00:03:05,130
Message to print will be here.

45
00:03:05,190 --> 00:03:05,880
Yes.

46
00:03:06,270 --> 00:03:07,710
And then the.

47
00:03:08,570 --> 00:03:10,100
He are going to be the.

48
00:03:10,850 --> 00:03:11,660
Student.

49
00:03:12,850 --> 00:03:14,500
Score will be here.

50
00:03:14,530 --> 00:03:19,090
So with this one, I go to write some logic out of this question.

51
00:03:19,420 --> 00:03:21,840
So here comes the implementation.

52
00:03:21,850 --> 00:03:27,460
So if I more time, the students score.

53
00:03:27,670 --> 00:03:28,520
Students score.

54
00:03:28,610 --> 00:03:35,860
H Is it more than the total score that we experience?

55
00:03:36,070 --> 00:03:42,430
If that is the case, meaning this one is true, in case it's true, then we can console.log.

56
00:03:42,430 --> 00:03:42,820
What?

57
00:03:42,820 --> 00:03:44,320
Success message.

58
00:03:44,710 --> 00:03:51,820
Then we can console.log the success message.

59
00:03:53,100 --> 00:03:53,970
Errors.

60
00:03:55,120 --> 00:03:58,540
If your score is not, it's no more than total score.

61
00:03:58,570 --> 00:04:04,900
Then you can say you can copy the same concert log, change the message and use failure.

62
00:04:05,800 --> 00:04:12,430
So when I save it before we get the answer, so let me comment out this one from here because I want

63
00:04:12,430 --> 00:04:13,990
to see multiple console.log.

64
00:04:14,740 --> 00:04:19,839
So before I save it, what message will print again?

65
00:04:20,170 --> 00:04:21,339
Let's go again.

66
00:04:21,670 --> 00:04:30,610
You can see that the student score, which is 85%, is more than total score, which is 80%.

67
00:04:31,150 --> 00:04:36,700
So this code will run that a I think so.

68
00:04:36,700 --> 00:04:37,540
We have to change this one.

69
00:04:37,540 --> 00:04:38,830
So it may say you qualify.

70
00:04:38,830 --> 00:04:39,310
Yeah.

71
00:04:39,310 --> 00:04:41,710
So you qualify and yeah.

72
00:04:41,710 --> 00:04:43,150
Yeah when I save it.

73
00:04:43,630 --> 00:04:55,000
Now you see we have you qualify for full scholarship but if I change the student score from here to

74
00:04:55,000 --> 00:04:57,880
say 50% when I save it.

75
00:04:58,180 --> 00:05:03,340
Oh we are sorry you got your scholarship.

76
00:05:03,760 --> 00:05:07,420
So we don't have the right way to go by this.

77
00:05:07,420 --> 00:05:16,570
But this is the way how we can deduce some logic out of the code to write some programming code to make

78
00:05:16,570 --> 00:05:18,550
some logic as we have done.

79
00:05:19,770 --> 00:05:23,970
In this particular exercise, if able to get it.

80
00:05:24,780 --> 00:05:25,620
Bravo.

81
00:05:25,800 --> 00:05:26,790
If you couldn't.

82
00:05:26,970 --> 00:05:27,930
Don't worry.

83
00:05:28,050 --> 00:05:30,190
With time, you're going to get it.

84
00:05:30,210 --> 00:05:32,040
Ask questions and practice.

