1
00:00:00,540 --> 00:00:05,100
So here as you can see I am actually either reading over the values that are inside of these numbers

2
00:00:05,150 --> 00:00:09,080
Ali and that here I am just adding those values to this.

3
00:00:09,100 --> 00:00:10,570
Our total value variable.

4
00:00:10,710 --> 00:00:14,390
So this line of code here is actually the same as this line of code here.

5
00:00:14,400 --> 00:00:19,000
Total value assignment operator total value plus value.

6
00:00:19,200 --> 00:00:19,900
OK.

7
00:00:20,670 --> 00:00:23,960
So let me actually comment with this line of code here.

8
00:00:24,150 --> 00:00:28,480
And here in line for the free I am returning the division.

9
00:00:28,560 --> 00:00:31,560
The result of the Division of these are two numbers.

10
00:00:31,560 --> 00:00:35,180
Total value divided by the length of these numbers array.

11
00:00:35,610 --> 00:00:38,070
So now let's actually use this method here.

12
00:00:38,070 --> 00:00:43,730
So as you can see here here I just typed in here takes the average value.

13
00:00:43,860 --> 00:00:46,310
I deferred to the name of this object.

14
00:00:46,520 --> 00:00:48,350
The average value to a text.

15
00:00:48,390 --> 00:00:48,960
OK.

16
00:00:49,290 --> 00:00:50,370
Get the average value.

17
00:00:50,370 --> 00:00:56,730
So here I just called the Smurfette this in for the actual returns of value of integer k get the average

18
00:00:56,730 --> 00:00:58,670
value in Ari.

19
00:00:58,830 --> 00:01:04,770
OK so this if it actually accepts an integer array here as you can see I referred to the name of this

20
00:01:04,860 --> 00:01:10,120
error here and here I actually converted this value to a string value.

21
00:01:10,200 --> 00:01:13,410
So now it's actually on our project and see what happens.

22
00:01:13,410 --> 00:01:19,980
So here as you can see now our application is running on the simulator and the average value is number

23
00:01:19,980 --> 00:01:20,640
26.

24
00:01:20,640 --> 00:01:21,200
OK.

25
00:01:21,510 --> 00:01:24,820
So this value is the average value of these numbers here.

26
00:01:24,840 --> 00:01:29,770
As you can see inside of this scroll view here these values are actually the values that are actually

27
00:01:29,790 --> 00:01:31,520
inside of this in here.

28
00:01:31,590 --> 00:01:32,650
OK.

29
00:01:32,820 --> 00:01:34,820
So hopefully that makes sense.

30
00:01:34,920 --> 00:01:37,510
That's actually the comment out this line of code here.

31
00:01:37,740 --> 00:01:42,830
And let's let's actually type in here thinks the Army values.

32
00:01:42,890 --> 00:01:43,170
OK.

33
00:01:43,190 --> 00:01:44,640
That said text.

34
00:01:45,000 --> 00:01:48,870
And again this actually refers to the name of this Meffert get the average value.

35
00:01:48,870 --> 00:01:54,460
And here I can actually put in unlimited number of values integer values to this method.

36
00:01:54,520 --> 00:01:56,210
OK as an argument here.

37
00:01:56,220 --> 00:01:56,820
OK.

38
00:01:57,120 --> 00:02:05,610
For example I can't just type PIN number 4 quote comma 5 comma 7 and let's actually run our project

39
00:02:05,640 --> 00:02:06,800
and see what happens.

40
00:02:06,810 --> 00:02:11,840
And here I just pasting a line of code and then I'll explain to you what's going on here OK.

41
00:02:12,210 --> 00:02:18,120
So as you can see here I just pasting this line of code here it takes the average value I referred to

42
00:02:18,120 --> 00:02:25,050
the name of this dx the average value object that set text at inside Apprentice's of this method I referred

43
00:02:25,130 --> 00:02:26,140
to the name of this Benford.

44
00:02:26,160 --> 00:02:28,300
As you can see that is created in line 49.

45
00:02:28,320 --> 00:02:28,930
OK.

46
00:02:29,250 --> 00:02:30,560
Get the average value.

47
00:02:30,750 --> 00:02:36,630
And here as you can see I assigned these values as actually arguments to the Smurfette the cake.

48
00:02:36,630 --> 00:02:43,450
So as you can see here this disbenefit actually can accept unlimited integer numbers as an argument.

49
00:02:43,680 --> 00:02:45,540
Ok as arguments.

50
00:02:45,660 --> 00:02:53,300
So as you can see here I assign number 2 4 6 six or I could actually assign other values 5 9 10.

51
00:02:53,490 --> 00:03:01,050
OK I can actually assign unlimited number numbers of integer integer numbers to this method.

52
00:03:01,350 --> 00:03:04,050
Now let's actually run our project and see what happens.

53
00:03:04,050 --> 00:03:09,950
So here as you can see our application is running on this emulator and we can see this value here.

54
00:03:09,960 --> 00:03:11,830
The average value is number 6.

55
00:03:12,090 --> 00:03:15,120
So this value is actually the average value of these numbers.

56
00:03:15,120 --> 00:03:15,500
OK.

57
00:03:15,540 --> 00:03:18,010
2 4 6 5 9 10.

58
00:03:18,060 --> 00:03:18,880
OK.

59
00:03:19,320 --> 00:03:21,120
I could actually assign other values.

60
00:03:21,120 --> 00:03:26,880
Number 15 25 40 or other values.

61
00:03:26,880 --> 00:03:27,360
OK.

62
00:03:27,420 --> 00:03:32,300
So let's actually run our project and here as you can see we can see this value here.

63
00:03:32,370 --> 00:03:34,310
The average value is number 11.

64
00:03:34,320 --> 00:03:38,990
The average of these values that are actually inside of the prentices of the Smurfit.

65
00:03:39,330 --> 00:03:40,780
So hopefully that makes sense.

66
00:03:40,810 --> 00:03:46,470
And if you have any questions please post the discussion in the course and then I'll do my best to answer

67
00:03:46,530 --> 00:03:47,810
all of your questions.

68
00:03:48,060 --> 00:03:51,130
Thank you very much for watching and I'll see you in the next year.

69
00:03:51,210 --> 00:03:51,460
Tauriel.

