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
All right, so in the previous video, what we talked about was a function called to lower and this
function received a character and checked out.
If this character is an Apricus letter and if that's the case, then basically what we had to do is
to calculate the lowercase representation of these given letter and to return it.
And we've done it using the Huskie to the ASCII table to find out these formula that was used and helped
us in this task.
In all simply happened here is once again we took the decimal representation of a given character and
we reduced the decimal representation of the lower the uppercase A..
OK, just to get some, I don't know, some distance between the first letter, which is a up to a given
letter which was unknown.
And this distance, like this example, it was sixty seven representation of a gap F of uppercase C
minus uppercase A. which was 67 minus sixty five, which was still.
And we simply added these two to the lowercase eight to simply take the lowercase A to the R, the lowercase
C representation and we return it using this return statement.
So I hope that was clear.
And now in this video we are going simply to do something which is pretty much the same just to utilize
and to implement the two upper two upper function in these two upper function is going to work on a
very similar principle.
It will be like this.
So char to opera.
And what this function is going to do is, again, to receive some letter.
And once you receive some letter and you have to decide and to make some check to check some condition,
if, OK, if letter is going to be a lowercase letter.
OK, then in this case we should return the uppercase.
Right.
That's the name of the function.
So if letter is greater than lowercase eight and also if the letter is less than or equal to lowercase
Z.
Right.
Lowercase Z, then in this case we should calculate and find out the uppercase representation of the
letter.
So in this case, we should return the letter.
Very similar principle to what we've done previously.
OK, we know that the letter is a lower case than we will use minus lowercase A..
OK, plus opera.
Casey.
OK, very, very similar.
So we reduced it almost to the zero.
Right.
To find like the the gap, the distance.
And we used the letter minus lowercase since we knew that in this case.
OK, if this condition is satisfied then the letter itself is a lower case.
And then what we should do is just to add this kind of number to the capital, letter A. to its decimal
representation, to get the actual uppercase character that we wanted.
So I hope that's clear.
OK, and basically this is the other return ale's return, return, return minus one.
Who so I hope this is clear to you guys and also another important note is the reason why we used here
letter is greater than a and we use these nice things before it is, because if you would use it like
this, if letter is greater than a, then what our compiler would have thought is that A is a variable
and it would try to search for this variable value.
And that's not something that we want.
We want are we want the letter to be compared with the character AI itself.
So thank you guys for watching.
This exercise was not the easiest one and yeah, and in the next videos, I think I will do also one
or two videos regarding the ASCII tables, just to like to sharpen your knowledge to make you even more
experienced in one of them.
Yeah, this is Alphatech and my name is.
I'll see you in the next videos.
Take care of yourself.
Study more.
Enjoy life.
Do your daily exercises.
And thank you, guys.
I'll see you then.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.