Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,640 --> 00:00:07,690
What is going on, ladies and gentlemen, welcome back to our course, to our practice, to our exercises
2
00:00:08,140 --> 00:00:14,300
in these exercises, going to be pretty interesting, a little bit different than the previous ones.
3
00:00:14,890 --> 00:00:21,940
So what do you have to do is simply, OK, let's get the laser to the game, is to write a program that
4
00:00:21,940 --> 00:00:26,140
receives a coordinate point in an X Y system.
5
00:00:27,060 --> 00:00:34,350
So suppose that you have these X Y system and you have some point that has coordinates of X and Y,
6
00:00:34,830 --> 00:00:41,590
these things may be either positive or negative and also Y may be either positive or negative.
7
00:00:42,240 --> 00:00:50,250
So in this case, what we will have is just to decide where these point is located.
8
00:00:50,250 --> 00:00:55,440
Is it located on the first quadrant, on the second, third or fourth?
9
00:00:56,010 --> 00:01:02,910
And basically, if you will come to think about it at this point, maybe either here, here, here or
10
00:01:02,910 --> 00:01:10,920
here, and the program should determine that and print in which quadrant the point is located.
11
00:01:11,370 --> 00:01:18,840
So for that, we will have to apply a couple of let's see conditions to make sure that the point is
12
00:01:18,840 --> 00:01:21,320
either here, here, here or here.
13
00:01:21,690 --> 00:01:32,460
So, for example, if you have the first point is like 10 and 15, meaning the X is ten and Y is 15.
14
00:01:32,470 --> 00:01:35,390
So we can assume that it's on quadrant one.
15
00:01:35,820 --> 00:01:41,940
And also, if we have the second example of minus three and minus five, then in this case we know that
16
00:01:41,940 --> 00:01:47,280
the X is probably going to be somewhere here and the Y is going to be negative.
17
00:01:47,280 --> 00:01:50,680
So it's going to be probably somewhere in this position.
18
00:01:51,480 --> 00:01:54,190
So in this case, we should print quadrant three.
19
00:01:54,450 --> 00:02:02,700
And also, let's take elastics, our last example, example, number three in this case, so where the
20
00:02:02,700 --> 00:02:10,140
X is still and the Y is minus five, then we know in this case that if X is positive, it's probably
21
00:02:10,140 --> 00:02:11,730
going to be somewhere here.
22
00:02:12,090 --> 00:02:15,200
And if Y is negative, it's not going to be here.
23
00:02:15,210 --> 00:02:17,340
It's probably going to be somewhere below.
24
00:02:17,560 --> 00:02:23,490
And if it's going to be in this area, it's probably going to be quadrant four.
25
00:02:23,700 --> 00:02:25,770
And that's what we would like to print.
26
00:02:26,610 --> 00:02:31,410
So take a couple of moments to think about it, think about what should be the condition.
27
00:02:31,410 --> 00:02:38,950
How should you write in your programming language, how you should you tackle this exercise and yeah,
28
00:02:38,980 --> 00:02:41,380
we'll solve it together, of course, as usual.
29
00:02:42,240 --> 00:02:44,420
So until then, my name is Vlad.
30
00:02:44,460 --> 00:02:48,990
This is Alphatech, and I hope you really enjoy the course so far.
31
00:02:49,110 --> 00:02:50,690
So thank you guys for watching.
32
00:02:50,700 --> 00:02:52,070
And I will see you then.
3480
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.