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
What is going on, guys?
And welcome back to war, a new milestone where we are going to develop an average grade calculator.
Now, this challenging milestone involves the development of a cool application that will help you and
hopefully all the friends around you to easily calculate their average grade without the need to know
math at all.
Let's go right to share your applications that you've developed on your own with your friends, your
colleagues and your family.
And although you see, we had a similar example to calculate the average grade in the first sections
where we had to get as input three grades and to find out the average grade between them.
And that was not so hard to do, right?
We simply created three variables grade one, grade two and grade three.
And then we summed all of their values together and divided the result by three.
Pretty easy, I would say.
Don't you agree?
And maybe that was easy, but that's definitely was an inefficient program.
And why's that?
Well, it's because everything is grades.
If all the users will or all the students, if all of them would have just three grades.
And in such a case, our program, the previous one that we've written, will be just perfect for it.
But in reality, we know that different students may have done a different amount of courses.
So our program that knows to calculate the average rate for just three grades.
Now we just want satisfy the needs.
And that's exactly why we would like to develop a more functional general program that will be capable
of providing such functionality to all users, not based just on the number of courses they've taken.
Meaning that if George has three courses and Mike has 10 courses and they both want to find out what
is their average grade, then both could have used the same program, the same one that we are going
to develop in this milestone without any need for modification.
Is that clear?
So your task is to develop the general program that will be capable of receiving any number of grades
and to calculate the average grade between them.
Now, to guide you a little bit in the process of developing such a program, I will leave some guidelines
for that.
So here they are.
First of all, the program should receive grades as inputs until a stubborn condition of minus one,
meaning the program should continue receiving grades as inputs until a particular input is given.
And once the stubborn condition of minus one is met, then stop reading the inputs from the user and
then calculate the average grade of all the grades the user provided so far and preened the average
grade to the screen.
So now the program should be so gingery, guys.
So every user, no matter how many grades he may have, every user will be able to use this program
to calculate his average grade just by inserting one grade after the other.
Inserting all his grades and just specifying that he's done by inserting a grade of minus one.
So good luck with this exercise, guys.
Take some time to think about it and make sure you give it enough time, right?
Give it enough time to try to solve it on your own.
And once you're finished, I will see in the next video where we are going to solve this milestone together.
Right.
We usually do not solve all the milestones together.
But for this video, for this milestone, this is an exception.
I'm going to show you how it's done, how I'm doing it, how I'm using loops to solve it.
But please, please, please, I'm asking you.
Try to solve this one on your own.
It's very important.
So until next video, I'll see you there.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.