1
00:00:00,780 --> 00:00:09,750
And again in line for tea actually in line 59 as you can see here takes the game highest score that

2
00:00:09,760 --> 00:00:16,150
said takes my game that get maximum score plus two double quotes here.

3
00:00:16,400 --> 00:00:22,020
The X. The game lowest score that's a text my game that get minimum score OK plus two double quotes.

4
00:00:22,020 --> 00:00:25,750
So now let's actually run our project and see what happens.

5
00:00:26,160 --> 00:00:26,860
OK.

6
00:00:29,530 --> 00:00:34,380
So now as you can see our application is actually running on this emulator here.

7
00:00:34,510 --> 00:00:39,320
And as you can see the name of the game is kind of all this course of the game.

8
00:00:39,340 --> 00:00:41,600
Our game number one 45.

9
00:00:41,650 --> 00:00:43,320
Game number of 167.

10
00:00:43,330 --> 00:00:45,200
Game number of on 34.

11
00:00:45,220 --> 00:00:50,710
So as you can see here it's actually reading these values that are actually the inside of the index

12
00:00:50,710 --> 00:00:52,680
0 of this game scores at 8.

13
00:00:52,690 --> 00:00:58,160
So inside of this instead of the index zero of this game scores every we have this alley here.

14
00:00:58,240 --> 00:00:58,830
OK.

15
00:00:58,840 --> 00:01:02,750
This is the index 0 that is is inside of this game scores.

16
00:01:02,770 --> 00:01:03,480
OK.

17
00:01:03,820 --> 00:01:10,460
And here is actually the reading these values that are actually inside of this at a 45 67 34.

18
00:01:10,480 --> 00:01:10,960
OK.

19
00:01:11,260 --> 00:01:14,470
So let's see whether the values that are inside of the king number two.

20
00:01:14,470 --> 00:01:16,110
So this is Game number two.

21
00:01:16,190 --> 00:01:20,310
Twenty three 56 49.

22
00:01:20,460 --> 00:01:21,470
OK.

23
00:01:21,540 --> 00:01:25,860
Again as you can see these are the other values and we can see these values here.

24
00:01:25,920 --> 00:01:26,640
OK.

25
00:01:27,000 --> 00:01:33,160
And the lowest score of the game is zero and the highest score of the game is 94.

26
00:01:33,210 --> 00:01:35,730
OK so now let's actually see that.

27
00:01:35,910 --> 00:01:38,400
What's the value of the average of these scores.

28
00:01:38,400 --> 00:01:39,050
OK.

29
00:01:39,240 --> 00:01:45,360
So let's go back and say this main activity that you of a fight here and now I want to actually paste

30
00:01:45,360 --> 00:01:48,360
in some lines of code and then I explain to you what's going on here.

31
00:01:48,360 --> 00:01:48,800
OK.

32
00:01:48,930 --> 00:01:49,460
OK.

33
00:01:49,770 --> 00:01:53,980
So now as you can see I pasted these lines of code here.

34
00:01:54,060 --> 00:01:54,670
OK.

35
00:01:54,840 --> 00:02:01,580
First of all I declare a string variable called old takes the game average value of scores.

36
00:02:01,800 --> 00:02:08,530
So here I want to actually hold the value of these itx the game average value of scores here inside

37
00:02:08,580 --> 00:02:11,550
of this old DHC game have the value of scores.

38
00:02:11,560 --> 00:02:18,030
OK the previous values that are actually assigned to the takes the game average value of scores is going

39
00:02:18,030 --> 00:02:23,760
to be held inside this hold all it takes the game average value of scores.

40
00:02:23,760 --> 00:02:24,420
OK.

41
00:02:24,750 --> 00:02:32,550
And here I actually created a for loop and inside the prentices of this for a loop I created a variable

42
00:02:32,550 --> 00:02:37,110
of type integer and gave index as an assignment operator 0.

43
00:02:37,190 --> 00:02:37,870
OK.

44
00:02:37,950 --> 00:02:44,100
Until the value of this game in the x variable is less than the value of the game scores read that Len.

45
00:02:44,220 --> 00:02:44,730
OK.

46
00:02:44,820 --> 00:02:50,000
Until the value of this game index is less than the value of the length of this game scores.

47
00:02:50,520 --> 00:02:52,310
This loop is going to be executed.

48
00:02:52,440 --> 00:02:53,010
OK.

49
00:02:53,310 --> 00:02:58,920
And here I specified that after each execution of this for a loop the value of this game in this variable

50
00:02:58,920 --> 00:03:00,550
is going to be incremented by 1.

51
00:03:00,570 --> 00:03:01,410
OK.

52
00:03:01,530 --> 00:03:08,860
So inside of this as you can see first of all I actually instantiate this object this variable.

53
00:03:08,870 --> 00:03:11,850
All it takes the game average value of scores.

54
00:03:12,030 --> 00:03:16,560
Assignment operator takes the game average value of scores.

55
00:03:16,660 --> 00:03:22,140
OK here I referred to the name of this object to the name of these takes you takes the game average

56
00:03:22,140 --> 00:03:24,470
value of scores that get takes.

57
00:03:24,480 --> 00:03:25,330
That was strange.

58
00:03:25,410 --> 00:03:31,280
Here I am actually getting the value of these 60 game average value of scores takes view.

59
00:03:31,560 --> 00:03:35,870
And here I want to actually convert that value to a string value.

60
00:03:35,940 --> 00:03:39,360
OK two streams plus game index here.

61
00:03:39,370 --> 00:03:43,700
I want to actually assign the value of this game index variable here.

62
00:03:43,860 --> 00:03:51,900
OK here I am actually concatenating this value to this of this value game index plus a dash here as

63
00:03:51,900 --> 00:03:53,950
you can see inside the double quotes.

64
00:03:53,940 --> 00:03:56,900
I actually put in a dash and a space here.

65
00:03:56,940 --> 00:03:57,570
OK.

66
00:03:58,060 --> 00:04:05,570
So now in line 52 I created a variable of type double average value assignment operator.

67
00:04:05,820 --> 00:04:09,530
And then I referred to the name of this my game object.

68
00:04:09,600 --> 00:04:14,110
And then I called this get the average value of a score Smurfette on this object.

69
00:04:14,100 --> 00:04:14,670
OK.

70
00:04:14,670 --> 00:04:20,670
So inside this game class as you can see here we have actually dispensed with get the average value

71
00:04:20,670 --> 00:04:21,350
of scores.

72
00:04:21,480 --> 00:04:25,480
And this method actually accepts an argument of type integer arii.

73
00:04:25,560 --> 00:04:27,510
This is actually a one dimensional array.

74
00:04:27,600 --> 00:04:34,120
And here inside the Smurfette First of all I created a variable of type integer total and then I assigned

75
00:04:34,120 --> 00:04:36,260
the value zero to the Smurfette.

76
00:04:36,510 --> 00:04:39,030
And then I actually created a for loop here.

77
00:04:39,210 --> 00:04:41,850
So this is actually an enhanced for loop.

78
00:04:42,150 --> 00:04:46,570
And I said that ain't school our colon scores.

79
00:04:46,590 --> 00:04:50,340
So it's going to iterate over the values that are actually inside of these scores.

80
00:04:51,150 --> 00:04:53,250
As you can see this is actually an argument.

81
00:04:53,250 --> 00:04:53,910
OK.

82
00:04:54,240 --> 00:04:55,740
And then it's actually a sign.

83
00:04:55,770 --> 00:05:03,540
Every every one of each value that are actually inside of this attitude is score valuable.

84
00:05:03,570 --> 00:05:04,260
OK.

85
00:05:04,620 --> 00:05:10,080
And then it's going to actually so after each execution of this for loop you can actually assign one

86
00:05:10,080 --> 00:05:10,780
value.

87
00:05:10,890 --> 00:05:13,770
Ok that is inside of this specific index of this.

88
00:05:13,910 --> 00:05:19,920
These is valuable and in the inside of this world up here we are actually adding to the value of these

89
00:05:19,920 --> 00:05:20,980
total variables.

90
00:05:21,090 --> 00:05:25,060
OK these score valuable to the value of this is called radiation.

91
00:05:25,080 --> 00:05:28,410
And here we are assigning that value to this total variable.

92
00:05:28,620 --> 00:05:33,800
So here I commented out this line of code because these two lines of code are actually the same.

93
00:05:33,960 --> 00:05:34,570
OK.

94
00:05:35,010 --> 00:05:41,430
And here I am returning the value of the Division of these two two numbers the value of the total variable

95
00:05:41,670 --> 00:05:44,960
divided by the value of the length of this course.

96
00:05:45,100 --> 00:05:45,780
OK.

97
00:05:46,170 --> 00:05:51,540
And here inside this main activity that of a fight here as you can see I am actually calling this method

98
00:05:51,590 --> 00:05:57,810
on this object and as an argument I actually failed to the name of this are two dimensional array game

99
00:05:57,810 --> 00:05:58,890
scores great.

100
00:05:59,370 --> 00:06:03,680
And I actually said that game scores are a sub game index.

101
00:06:03,840 --> 00:06:04,580
OK.

102
00:06:04,740 --> 00:06:10,360
So for the first time that this loop is going to be executed for example the value of this game in this

103
00:06:10,380 --> 00:06:11,500
variable is zero.

104
00:06:11,520 --> 00:06:12,210
OK.

105
00:06:12,390 --> 00:06:14,300
So it's going to go inside of this rate.

106
00:06:14,370 --> 00:06:14,930
OK.

107
00:06:15,150 --> 00:06:18,390
And as you can see this is my right this is my two dimensional array.

108
00:06:18,620 --> 00:06:22,510
And the value that is inside of the index zero of this array is this.

109
00:06:22,580 --> 00:06:23,170
OK.

110
00:06:23,390 --> 00:06:28,170
And this R.A. has this values 45 67 and 44.

111
00:06:28,220 --> 00:06:28,920
OK.

112
00:06:29,270 --> 00:06:37,850
And here it's going actually actually calculate the average value of this of the of these free values

113
00:06:37,850 --> 00:06:38,430
here.

114
00:06:38,660 --> 00:06:39,500
And then it's going to assign.

115
00:06:39,500 --> 00:06:41,910
That's why the truth is variable average value.

116
00:06:42,140 --> 00:06:47,470
And then here I am actually out putting that value to the screen takes the game average value of scores.

117
00:06:47,550 --> 00:06:51,350
That's it takes all TXI the game average value of scores.

118
00:06:51,350 --> 00:06:54,190
Here I am referring to the name of this variable.

119
00:06:54,310 --> 00:06:54,870
OK.

120
00:06:54,950 --> 00:06:59,060
Plus here I want to congratulate disvalue with this average value.

121
00:06:59,120 --> 00:06:59,430
OK.

122
00:06:59,450 --> 00:07:02,050
As you can see plus a new line character.

123
00:07:02,100 --> 00:07:07,100
OK so now let's actually run on our project and see what happens.

124
00:07:07,760 --> 00:07:12,740
So here as you can see our application is actually running on the emulator.

125
00:07:13,370 --> 00:07:16,210
And if I scroll down here let's see what happens.

126
00:07:16,460 --> 00:07:18,980
Let's see if you can see the other values.

127
00:07:19,580 --> 00:07:20,620
OK.

128
00:07:21,240 --> 00:07:24,160
And as you can see we can see this value here OK.

129
00:07:24,190 --> 00:07:26,370
The average value of this course is.

130
00:07:26,420 --> 00:07:31,240
So the average value of the scores is as you can see this is the index 0.

131
00:07:31,340 --> 00:07:33,830
So this is the index 0 here.

132
00:07:33,860 --> 00:07:37,200
As you can see this tree is at the index 0 of this game scores Ari.

133
00:07:37,280 --> 00:07:37,810
OK.

134
00:07:38,120 --> 00:07:42,390
And this value here is actually the average value of these free numbers here.

135
00:07:42,390 --> 00:07:45,240
OK 45 67 and 34.

136
00:07:45,410 --> 00:07:45,930
OK.

137
00:07:46,100 --> 00:07:46,920
Index 1.

138
00:07:47,030 --> 00:07:53,030
So this is the this one and this is the average value index to this index too.

139
00:07:53,120 --> 00:07:53,720
OK.

140
00:07:53,960 --> 00:07:58,030
And as you can see we've got other values here.

141
00:07:58,040 --> 00:07:58,720
OK.

142
00:07:59,240 --> 00:08:00,830
So hopefully that makes sense.

143
00:08:00,890 --> 00:08:04,150
And I think that's enough for this theatregoer.

144
00:08:04,610 --> 00:08:09,980
So if you have any questions please post the discussion in the course and then I'll do my best to answer

145
00:08:10,010 --> 00:08:11,670
all of your questions.

146
00:08:11,790 --> 00:08:15,260
And thank you very much for watching and I'll see you in the next year or.

