This is putting your ducks in a row, Computer Science style. Some of the simplest but most useful data structures are linear. Dive in to build your foundational toolkit!
Write a program that computes the change in the average (arithmetic mean) of an unsorted array, when each number larger than \( X \) in the array is changed to a different number \(Y.\)
What is the biggest average among the given arrays when all the numbers larger than \( 20 \) are changed to \( 20 \) in the arrays below?
1 2 3 4 5 6 7 8 9 10
What is the sum of the third highest number and the fifth highest number in the following unsorted array?
Write a program that takes an unsorted array as an input and returns the sum of all numbers whose remainders are \(x\), when divided by \(N\).
What is the sum of all numbers in the array that have a remainder of \( 4 \) when divided by \( 6 \)?