COMPUTER SCIENCE 2210 · STRUCTURED PRACTICE
A meteorological research station collects temperature readings across 4 geographical zones (Zones 1 to 4) over a 5-day observation period (Days 1 to 5). Data is stored in a 2D array named SensorGrid.
Write a Cambridge pseudocode declaration for the 2D array SensorGrid with 5 rows and 4 columns capable of storing real numbers.
Write a pseudocode algorithm that:
- Uses nested loops to prompt and input temperature readings for all 20 elements of SensorGrid.
- Calculates and outputs the average daily temperature for each of the 5 days (each row).
Write an algorithm in Cambridge pseudocode to search the entire 2D array SensorGrid to find the highest temperature recorded, and output the maximum temperature along with its exact Day number (row) and Zone number (column).
Explain why referencing SensorGrid[4, 2] accesses a completely different memory location and data value compared to SensorGrid[2, 4].
Total: 12 marks

