Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,330 --> 00:00:01,630
What is going on, guys?
2
00:00:01,660 --> 00:00:09,210
And welcome back to war, a new milestone where we are going to develop an average grade calculator.
3
00:00:09,360 --> 00:00:15,750
Now, this challenging milestone involves the development of a cool application that will help you and
4
00:00:15,750 --> 00:00:22,650
hopefully all the friends around you to easily calculate their average grade without the need to know
5
00:00:22,740 --> 00:00:24,090
math at all.
6
00:00:24,270 --> 00:00:30,330
Let's go right to share your applications that you've developed on your own with your friends, your
7
00:00:30,330 --> 00:00:31,860
colleagues and your family.
8
00:00:31,980 --> 00:00:38,070
And although you see, we had a similar example to calculate the average grade in the first sections
9
00:00:38,250 --> 00:00:43,860
where we had to get as input three grades and to find out the average grade between them.
10
00:00:44,310 --> 00:00:47,400
And that was not so hard to do, right?
11
00:00:47,580 --> 00:00:52,140
We simply created three variables grade one, grade two and grade three.
12
00:00:52,530 --> 00:00:57,990
And then we summed all of their values together and divided the result by three.
13
00:00:58,050 --> 00:00:59,850
Pretty easy, I would say.
14
00:00:59,910 --> 00:01:00,750
Don't you agree?
15
00:01:00,870 --> 00:01:06,240
And maybe that was easy, but that's definitely was an inefficient program.
16
00:01:06,420 --> 00:01:07,710
And why's that?
17
00:01:07,950 --> 00:01:10,330
Well, it's because everything is grades.
18
00:01:10,380 --> 00:01:16,560
If all the users will or all the students, if all of them would have just three grades.
19
00:01:16,980 --> 00:01:22,480
And in such a case, our program, the previous one that we've written, will be just perfect for it.
20
00:01:22,770 --> 00:01:28,530
But in reality, we know that different students may have done a different amount of courses.
21
00:01:28,980 --> 00:01:34,800
So our program that knows to calculate the average rate for just three grades.
22
00:01:35,340 --> 00:01:37,680
Now we just want satisfy the needs.
23
00:01:37,830 --> 00:01:44,190
And that's exactly why we would like to develop a more functional general program that will be capable
24
00:01:44,190 --> 00:01:51,120
of providing such functionality to all users, not based just on the number of courses they've taken.
25
00:01:51,390 --> 00:01:59,010
Meaning that if George has three courses and Mike has 10 courses and they both want to find out what
26
00:01:59,010 --> 00:02:06,540
is their average grade, then both could have used the same program, the same one that we are going
27
00:02:06,540 --> 00:02:10,970
to develop in this milestone without any need for modification.
28
00:02:11,310 --> 00:02:12,210
Is that clear?
29
00:02:12,330 --> 00:02:18,510
So your task is to develop the general program that will be capable of receiving any number of grades
30
00:02:18,750 --> 00:02:21,840
and to calculate the average grade between them.
31
00:02:22,120 --> 00:02:27,150
Now, to guide you a little bit in the process of developing such a program, I will leave some guidelines
32
00:02:27,150 --> 00:02:27,750
for that.
33
00:02:28,080 --> 00:02:29,250
So here they are.
34
00:02:29,430 --> 00:02:35,640
First of all, the program should receive grades as inputs until a stubborn condition of minus one,
35
00:02:36,060 --> 00:02:42,510
meaning the program should continue receiving grades as inputs until a particular input is given.
36
00:02:42,660 --> 00:02:48,750
And once the stubborn condition of minus one is met, then stop reading the inputs from the user and
37
00:02:48,750 --> 00:02:54,510
then calculate the average grade of all the grades the user provided so far and preened the average
38
00:02:54,510 --> 00:02:55,470
grade to the screen.
39
00:02:55,650 --> 00:02:58,770
So now the program should be so gingery, guys.
40
00:02:59,070 --> 00:03:06,000
So every user, no matter how many grades he may have, every user will be able to use this program
41
00:03:06,000 --> 00:03:12,060
to calculate his average grade just by inserting one grade after the other.
42
00:03:12,450 --> 00:03:19,740
Inserting all his grades and just specifying that he's done by inserting a grade of minus one.
43
00:03:19,860 --> 00:03:22,070
So good luck with this exercise, guys.
44
00:03:22,260 --> 00:03:26,080
Take some time to think about it and make sure you give it enough time, right?
45
00:03:26,100 --> 00:03:28,770
Give it enough time to try to solve it on your own.
46
00:03:28,920 --> 00:03:34,680
And once you're finished, I will see in the next video where we are going to solve this milestone together.
47
00:03:34,790 --> 00:03:35,050
Right.
48
00:03:35,100 --> 00:03:38,070
We usually do not solve all the milestones together.
49
00:03:38,310 --> 00:03:41,880
But for this video, for this milestone, this is an exception.
50
00:03:41,910 --> 00:03:47,160
I'm going to show you how it's done, how I'm doing it, how I'm using loops to solve it.
51
00:03:47,730 --> 00:03:50,610
But please, please, please, I'm asking you.
52
00:03:50,650 --> 00:03:52,810
Try to solve this one on your own.
53
00:03:52,830 --> 00:03:53,970
It's very important.
54
00:03:54,060 --> 00:03:56,100
So until next video, I'll see you there.
5592
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.