Year 9 practice challenges

Four 2D-array programming challenges covering counting, totaling, averaging and max/min. Each challenge is on its own page. Try it yourself, then press Show solution.

Challenge 1

Student Scores

A class mark book as a 2D array — count high scores, total one student, average a subject column, and find max/min.

2D arraycount
Open challenge 1
Challenge 2

Weather Data

Four days of morning, afternoon and evening temperatures — practise nested loops on rows and columns.

2D arraycount
Open challenge 2
Challenge 3

Cinema Seat Bookings

A boutique cinema grid where 0 means empty and a positive number is the ticket price paid for a booked seat.

2D arraycount
Open challenge 3
Challenge 4

Delivery Distances

Four delivery vans and three weekdays of kilometre data — count long trips and analyse rows and columns.

2D arraycount
Open challenge 4