Computer Science · Oct / Nov 2024 · Paper 1 SL · Question 13
Adapt for 2027Computing a mean and sorting an array to find the median are taught, but the algorithms must be written in Python or Java instead of pseudocode.
IBCS
As printed in the paper
The question as text
13. Mean and median are different measures of central tendency for a numerical dataset. Figure 1: Example data values stored in a one-dimensional array, DATA, which contains 10 elements [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] 2 3 3 6 5 9 10 100 14 17 The mean of the data values stored in a one-dimensional array can be determined as follows: y Add up all the numbers in the one-dimensional array. y Divide this sum by how many numbers there are. The mean of the data values stored in the DATA array in Figure 1 is 16.9.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
13(a)[4]
13(b)(i)[1]
13(b)(ii)[10]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

