Activity 01
Pair Programming: Score Array Analyzer
Pairs declare a 1D array for class test scores and a 2D array for scores by subject. They code loops to find averages, highest values, and display formatted grids. Pairs test edge cases like empty arrays and swap code for review.
Explain how arrays provide an organized way to store multiple pieces of data.
Facilitation TipDuring Pair Programming: Score Array Analyzer, circulate to ensure both students share the keyboard and verbalize decisions, not just one coding while the other observes.
What to look forPresent students with a pre-written code snippet that declares and initializes a one-dimensional array. Ask them to predict the output if the code attempts to access index 5 in an array of size 5. Ask: 'What error message might occur and why?'