All language subtitles for 8. Quadrant of a Point - Solution

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,630 --> 00:00:06,090 Welcome back and let's start solving this exercise together, shall we? 2 00:00:07,020 --> 00:00:12,410 So the first thing that we need to understand is that we will have X and Y, OK? 3 00:00:12,630 --> 00:00:20,020 And based on the values of this X and Y, we are going to determine in which quadrant they are located. 4 00:00:20,550 --> 00:00:24,830 So the first case, let's say Ward ran one. 5 00:00:25,680 --> 00:00:29,600 What we have to understand is what's special about this quadrant. 6 00:00:30,000 --> 00:00:40,340 So the special thing about it is that both, OK, both X and Y have positive values. 7 00:00:40,350 --> 00:00:40,820 Right. 8 00:00:41,580 --> 00:00:48,930 And if we want to talk about quadrant two, then in this case, let's want to rent to then in this case, 9 00:00:48,930 --> 00:00:50,210 what can we say about it? 10 00:00:50,220 --> 00:00:52,440 What's special about the second quadrant? 11 00:00:52,950 --> 00:00:56,760 And the special thing about it is that X will be negative. 12 00:00:56,760 --> 00:01:03,170 So X has negative value while Y will have a positive value. 13 00:01:03,180 --> 00:01:07,800 So why has positive value? 14 00:01:07,830 --> 00:01:14,830 OK, so that's quadrant two and also let's do the same fourth, quadrant three. 15 00:01:15,330 --> 00:01:24,360 So what's special about quadrant three is that both once again, X and Y have what, not positive values, 16 00:01:24,360 --> 00:01:26,750 but negative values. 17 00:01:26,760 --> 00:01:27,130 Right. 18 00:01:27,150 --> 00:01:28,390 That's what's special about it. 19 00:01:28,980 --> 00:01:31,640 And finally, we have also the Quadrant four. 20 00:01:31,980 --> 00:01:45,240 And in this case, we will say that X has positive ratings, positive value and Y has negative value. 21 00:01:45,270 --> 00:01:51,160 OK, so it has a positive value and Y has a negative value. 22 00:01:51,630 --> 00:02:00,570 So basically what we've done right now is we've classified the information about each of these quadrants 23 00:02:00,870 --> 00:02:05,980 and now we have finished the theoretical explanation. 24 00:02:06,000 --> 00:02:12,910 Let's say this way and we are ready to start writing our program in our C programming language. 25 00:02:13,770 --> 00:02:20,190 So the first thing that we need to do is just to create these two variables and X and Y. 26 00:02:20,380 --> 00:02:30,720 OK, and now we are going to use the printf command to specify the user enter X and Y, OK? 27 00:02:30,750 --> 00:02:33,780 And then in this case, the user is going to insert both of them. 28 00:02:34,020 --> 00:02:41,580 So let's just read them together using percentage, the percentage in storing it inside of variable, 29 00:02:41,700 --> 00:02:45,030 inside of variable X and variable Y. 30 00:02:45,310 --> 00:02:53,490 OK, so these are we simply going to insert X and Y, you just space some space between their values 31 00:02:53,490 --> 00:02:59,670 and we are going to read these values and store them inside variable X and Y, and later on we will 32 00:02:59,670 --> 00:03:08,730 start asking the following conditions to make sure if this point of X Y is either on the score of the 33 00:03:08,940 --> 00:03:11,670 quadrant, this one, this one or that one. 34 00:03:12,120 --> 00:03:14,910 So let's start asking the questions. 35 00:03:14,940 --> 00:03:19,930 Asking the conditions in the first condition is going to be very simple. 36 00:03:19,950 --> 00:03:23,810 We know that Quadrant one has both of the values is positive. 37 00:03:23,820 --> 00:03:36,870 So if OK, if let's say if our X equals no positive and OK and Y is positive. 38 00:03:36,900 --> 00:03:37,290 Right. 39 00:03:37,410 --> 00:03:39,740 That's what we said about this condition. 40 00:03:39,750 --> 00:03:46,530 If both of them are positive, then in this case we can say that this point is located at quadrant one. 41 00:03:46,770 --> 00:03:48,690 So let's bring a nice message. 42 00:03:48,690 --> 00:04:00,150 Printf the point, what was the percentage B percentage is located in there? 43 00:04:00,240 --> 00:04:02,670 Let's say first we want. 44 00:04:04,110 --> 00:04:05,940 OK, so very simple. 45 00:04:05,940 --> 00:04:07,380 Nothing complicated so far. 46 00:04:07,390 --> 00:04:12,210 Instead of the first percentage, we will use X in the second one, Y, and that's it. 47 00:04:12,660 --> 00:04:19,110 So if both of the values of X and Y are positive, then we can say that the point is located in the 48 00:04:19,110 --> 00:04:20,040 first quadrant. 49 00:04:21,540 --> 00:04:28,540 OK, so elusive, elusive X is negative, right? 50 00:04:28,590 --> 00:04:29,610 That's the second one. 51 00:04:29,620 --> 00:04:37,470 If X is negative while the Y is positive, then in this case we will print that. 52 00:04:37,630 --> 00:04:42,240 The point is under the second quadrant. 53 00:04:42,600 --> 00:04:42,960 Right. 54 00:04:42,990 --> 00:04:43,810 You agree with me. 55 00:04:44,610 --> 00:04:45,170 Awesome. 56 00:04:45,450 --> 00:04:49,290 So also let's say that that's still not the case. 57 00:04:49,300 --> 00:04:54,600 And if we know that X is positive, but why is negative. 58 00:04:54,780 --> 00:04:55,230 Right? 59 00:04:55,590 --> 00:04:57,900 If X is positive by Y's negative, no. 60 00:04:57,900 --> 00:04:59,700 Let's do first of all, the third one. 61 00:05:00,180 --> 00:05:06,540 Both of them are negative, so if X is less than zero and wise less than zero, let's go like this. 62 00:05:06,960 --> 00:05:13,890 So if both of them are negative, then in this case, let's say that it's under the third OK, the third 63 00:05:13,890 --> 00:05:21,300 coordinate and finally they all save X is negative. 64 00:05:22,260 --> 00:05:27,570 And also last on last condition will be the final else. 65 00:05:27,610 --> 00:05:32,420 If neither of them was OK, then in this case we will simply train. 66 00:05:32,820 --> 00:05:33,540 I don't know. 67 00:05:33,570 --> 00:05:40,350 The point is located, I don't know at the center of. 68 00:05:40,510 --> 00:05:43,680 And it will probably be zero zero. 69 00:05:43,680 --> 00:05:44,010 Right. 70 00:05:44,460 --> 00:05:49,040 And that's basically how we should approach this exercise. 71 00:05:49,050 --> 00:05:52,080 And let's go and build and run it, see how it works. 72 00:05:52,270 --> 00:05:56,260 So enter X and Y, let's go Y and one in five. 73 00:05:56,280 --> 00:05:59,230 So the point one in five is located in the first quadrant. 74 00:05:59,250 --> 00:06:00,880 OK, good, good, good. 75 00:06:01,230 --> 00:06:08,180 Let's check the second one so we can say that it will be minus two and let's say five. 76 00:06:08,550 --> 00:06:13,420 So the point minus two five is located in the second quadrant and so on and so forth. 77 00:06:13,440 --> 00:06:15,540 Guys, basically let's check it out. 78 00:06:15,540 --> 00:06:16,920 Also four zero zero. 79 00:06:17,010 --> 00:06:19,260 OK, so the point is located in the center. 80 00:06:20,100 --> 00:06:23,280 So yeah, this is it for this video. 81 00:06:23,280 --> 00:06:28,950 Guys, I hope you enjoyed it and you got some experience and some practice, some hands on. 82 00:06:29,520 --> 00:06:36,000 And let me know if you still have any questions regarding this this exercise, because we took something 83 00:06:36,000 --> 00:06:43,650 from math and just simplified it and wrote a program in our programming language that simply simulates 84 00:06:44,310 --> 00:06:49,980 and finds out which in which quadrant a given point is located. 85 00:06:50,730 --> 00:06:52,470 So until next time. 8019

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.