Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Well, hello, there, my name is Vlad.
This is alpha tech, and in this video, what we are going to do is a quick, maybe not so quick, but
a good exercise regarding rational numbers.
OK.
So what do you have to do is to design and develop rational numbers project called rational.
OK, so first of all, you are going to design and develop a rational number, a structure that will
be called rational.
And these structure is basically will be used to represent a rational number.
And just a quick reminder to you guys that a rational number consists of two parts.
The first one is the new numerator and the second one is denominator.
OK, so any number can resist.
Irrational number consists of the denominator and the denominator.
OK, is it clear?
So what you will need to do is, first of all, to provide this structure for the rational.
That shouldn't be very difficult.
OK consists of two fields, numerator and denominator.
And then what you will have to provide is basically OK.
After, you know, the previous material we've spoken about, you will have to provide a couple of functions.
OK?
One function that should increment a given rational number.
The other a function should decrement a given rational number.
There should be also functions for addition between two different rational numbers.
And once you calculate the addition between two of them, you will need to return the result also for
a subtraction multiplication division.
You will also write a couple of functions to decide which one of their rational numbers is smaller or
bigger to kind of compare between two rational numbers.
And you will have to write also functions for testing out the equality between two different regional
variables.
OK, so that's it.
You will have to write these functions.
How many of them?
One two three four five six seven eight nine 10 ten functions that you have to do.
This is kind of a comprehensive exercise.
It also requires you to kind of make some recap and remember how you basically use addition between
two regional numbers.
It's not just by taking the nominee to the illuminator plus denominator and denominator plus denominator,
you have to make some common ground right in the denominator field.
And then to make them OK.
Also for subtraction, what happens at multiplication?
So there are some rules for working with rational numbers.
It's not too complicated.
OK.
But it requires from you to think about it, even at least a little bit.
OK, so first of all, go write down on a piece of paper.
Write down everything that you remember about how to make increment on a given number and basically
how you should make additions between two regional numbers.
What are the steps before you jump into writing the code?
What are the steps on a piece of paper?
OK.
That's also what I'm going to show you in my full video solution.
Basically, all the steps one by one and then and only then we are going to jump in right down the actual
code.
The actual functions that are responsible for this task.
OK.
So thank you guys for watching and give it your best.
OK, even if it will take you a couple of hours, try to solve this exercise on your own.
Write down all the functions.
Make sure that your results are basically correct and basically test out of the actual value of.
The regional numbers, the regional variables that you create before and after any operation that you
will check.
OK.
And also you can use a calculator or I don't know something.
On the internet to make sure that are to test out the results of your program against the results of
something that should give you the correct answers.
So good luck.
My name is Lisa's alpha tech and you are doing a huge exercise on your own.
Give it your best.
Good luck.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.