Lesson Plan

Lesson Plan
Grade: Date: 17/01/2026
Subject: Computer Science
Lesson Topic: Select a suitable data structure (1D or 2D array) to use for a given task
Learning Objective/s:
  • Describe the difference between 1‑D and 2‑D arrays and when each is appropriate.
  • Apply a decision checklist to select the correct array dimension for a given problem.
  • Write correct Java declarations for 1‑D and 2‑D arrays based on problem specifications.
  • Analyse how a 2‑D array can be simulated with a 1‑D array using index arithmetic.
Materials Needed:
  • Projector or interactive whiteboard
  • Java IDE (e.g., Eclipse, IntelliJ) or online compiler
  • Printed worksheet with practice questions
  • Sample code snippets displayed on screen
  • Whiteboard and markers
  • Handout of the decision checklist (optional)
Introduction:
Begin with a quick poll: “When you think of a list versus a grid, which data structure comes to mind?” Review prior learning on basic arrays and indexed access. Explain that today’s success criteria are to correctly choose between a 1‑D and 2‑D array and to write a valid Java declaration.
Lesson Structure:
  1. Do‑now (5'): Students answer on paper “What data structure would you use for a single word?” and submit responses.
  2. Mini‑lecture (10'): Explain 1‑D vs 2‑D arrays, show comparison table and decision checklist.
  3. Guided practice (12'): Work through the temperature (1‑D) and scores matrix (2‑D) examples, writing code in the IDE.
  4. Independent activity (15'): Students complete three worksheet questions using the checklist; teacher circulates for support.
  5. Check for understanding (8'): Whole‑class poll with coloured cards or digital tool to confirm each student’s chosen array type for a new scenario.
Conclusion:
Summarise that selecting the right array dimension simplifies logic and optimises memory usage. Ask students to write one exit‑ticket sentence describing which array they would use for a real‑world example. Assign homework to convert a given 2‑D array problem into a 1‑D representation using the provided formula.