Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,540 --> 00:00:02,550
Well, hello, there, my name is Vlad.
2
00:00:02,610 --> 00:00:08,640
This is alpha tech, and in this video, what we are going to do is a quick, maybe not so quick, but
3
00:00:08,640 --> 00:00:13,060
a good exercise regarding rational numbers.
4
00:00:13,140 --> 00:00:13,660
OK.
5
00:00:14,670 --> 00:00:22,230
So what do you have to do is to design and develop rational numbers project called rational.
6
00:00:22,410 --> 00:00:28,620
OK, so first of all, you are going to design and develop a rational number, a structure that will
7
00:00:28,620 --> 00:00:30,450
be called rational.
8
00:00:31,170 --> 00:00:37,650
And these structure is basically will be used to represent a rational number.
9
00:00:38,220 --> 00:00:43,620
And just a quick reminder to you guys that a rational number consists of two parts.
10
00:00:44,070 --> 00:00:49,950
The first one is the new numerator and the second one is denominator.
11
00:00:50,520 --> 00:00:52,560
OK, so any number can resist.
12
00:00:52,760 --> 00:00:57,840
Irrational number consists of the denominator and the denominator.
13
00:00:58,680 --> 00:00:59,500
OK, is it clear?
14
00:01:00,300 --> 00:01:07,770
So what you will need to do is, first of all, to provide this structure for the rational.
15
00:01:07,800 --> 00:01:09,420
That shouldn't be very difficult.
16
00:01:09,630 --> 00:01:13,740
OK consists of two fields, numerator and denominator.
17
00:01:14,220 --> 00:01:17,660
And then what you will have to provide is basically OK.
18
00:01:17,670 --> 00:01:24,570
After, you know, the previous material we've spoken about, you will have to provide a couple of functions.
19
00:01:25,080 --> 00:01:25,500
OK?
20
00:01:25,830 --> 00:01:31,320
One function that should increment a given rational number.
21
00:01:31,890 --> 00:01:35,640
The other a function should decrement a given rational number.
22
00:01:36,570 --> 00:01:42,390
There should be also functions for addition between two different rational numbers.
23
00:01:42,870 --> 00:01:49,220
And once you calculate the addition between two of them, you will need to return the result also for
24
00:01:49,220 --> 00:01:51,450
a subtraction multiplication division.
25
00:01:51,750 --> 00:01:59,310
You will also write a couple of functions to decide which one of their rational numbers is smaller or
26
00:01:59,310 --> 00:02:04,470
bigger to kind of compare between two rational numbers.
27
00:02:05,520 --> 00:02:12,660
And you will have to write also functions for testing out the equality between two different regional
28
00:02:12,660 --> 00:02:13,410
variables.
29
00:02:13,560 --> 00:02:16,040
OK, so that's it.
30
00:02:16,050 --> 00:02:18,200
You will have to write these functions.
31
00:02:18,210 --> 00:02:18,960
How many of them?
32
00:02:18,960 --> 00:02:24,510
One two three four five six seven eight nine 10 ten functions that you have to do.
33
00:02:24,720 --> 00:02:27,060
This is kind of a comprehensive exercise.
34
00:02:27,300 --> 00:02:35,640
It also requires you to kind of make some recap and remember how you basically use addition between
35
00:02:35,640 --> 00:02:36,870
two regional numbers.
36
00:02:36,900 --> 00:02:43,620
It's not just by taking the nominee to the illuminator plus denominator and denominator plus denominator,
37
00:02:43,950 --> 00:02:47,950
you have to make some common ground right in the denominator field.
38
00:02:48,270 --> 00:02:50,030
And then to make them OK.
39
00:02:50,040 --> 00:02:53,340
Also for subtraction, what happens at multiplication?
40
00:02:53,610 --> 00:02:57,420
So there are some rules for working with rational numbers.
41
00:02:57,660 --> 00:02:59,460
It's not too complicated.
42
00:02:59,640 --> 00:03:00,180
OK.
43
00:03:00,480 --> 00:03:05,190
But it requires from you to think about it, even at least a little bit.
44
00:03:05,640 --> 00:03:10,560
OK, so first of all, go write down on a piece of paper.
45
00:03:10,560 --> 00:03:18,360
Write down everything that you remember about how to make increment on a given number and basically
46
00:03:18,690 --> 00:03:22,560
how you should make additions between two regional numbers.
47
00:03:22,830 --> 00:03:26,390
What are the steps before you jump into writing the code?
48
00:03:26,400 --> 00:03:28,650
What are the steps on a piece of paper?
49
00:03:29,100 --> 00:03:29,470
OK.
50
00:03:29,490 --> 00:03:33,400
That's also what I'm going to show you in my full video solution.
51
00:03:34,200 --> 00:03:41,970
Basically, all the steps one by one and then and only then we are going to jump in right down the actual
52
00:03:41,970 --> 00:03:42,450
code.
53
00:03:42,510 --> 00:03:47,070
The actual functions that are responsible for this task.
54
00:03:47,460 --> 00:03:47,850
OK.
55
00:03:48,180 --> 00:03:52,170
So thank you guys for watching and give it your best.
56
00:03:52,230 --> 00:03:58,110
OK, even if it will take you a couple of hours, try to solve this exercise on your own.
57
00:03:58,260 --> 00:03:59,610
Write down all the functions.
58
00:03:59,910 --> 00:04:09,450
Make sure that your results are basically correct and basically test out of the actual value of.
59
00:04:10,720 --> 00:04:17,340
The regional numbers, the regional variables that you create before and after any operation that you
60
00:04:17,340 --> 00:04:17,910
will check.
61
00:04:18,360 --> 00:04:18,790
OK.
62
00:04:19,140 --> 00:04:22,440
And also you can use a calculator or I don't know something.
63
00:04:23,540 --> 00:04:31,760
On the internet to make sure that are to test out the results of your program against the results of
64
00:04:32,180 --> 00:04:34,400
something that should give you the correct answers.
65
00:04:34,970 --> 00:04:36,210
So good luck.
66
00:04:36,230 --> 00:04:41,120
My name is Lisa's alpha tech and you are doing a huge exercise on your own.
67
00:04:41,720 --> 00:04:42,560
Give it your best.
68
00:04:42,980 --> 00:04:43,460
Good luck.
6291
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.