Sample Algorithms SL
Use of collections
The collection GOALS stores the number of goals scored in each match in the Bundesliga during the year.
Construct an algorithm in pseudocode that will perform the following operations:
read this data into a 1-D array called TEMP
Calculate and output the average number of goals scored
Calculate and output the number of games in which no goals were scored
Nov 2016
9.
1
2
3
May 17
4
Nov 17
5
May 18
6
7
May 16
8
9
10
Nov 2015
11
May 15
12
13