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
Welcome back to another challenge.
And you should solve this challenge right after you've studied casting.
So in the previous video, we've talked about casting in general as well as we've seen a couple of examples
to how casting can be used in C programming language.
And now we want to go back to one of the first exercises we've done where we calculated the average
grade between two given grades.
And so in this challenge, I want you to write a program that reads from the user of three grades of
typing and of course, and then the program should print the exact average between them.
And by saying the exact average grade, I mean that it should be a free floating point type if necessary,
with these dot precision and not round to any side just to keep it as an integer.
So, for example, if the calculated average grade is something like ninety two point five, then that's
the exact number that should be printed on the screen.
And not just 92, as we've seen, that may happen if nothing is in casting correctly or not used in
casting at all.
So once again, in this exercise, you have to apply the casting process.
The average rate should be calculated between the given three grades.
The grades must be of type in and the printed result.
The average should be of a floating point type, meaning that if the final grade should be, let's say,
eighty five point seven, then eighty five point seven will be printed on the screen and it will not
be round to any integer like 85.
So I hope you have got the point that snotting complex exercise is just to emphasize and practice a
little bit.
The topic of casting that we've just learned, and I wish you good luck and I'll see you in the Solutions
video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.