| Lesson Plan |
| Grade: Grade 9 |
Date: 05/03/2026 |
| Subject: Computer Science |
| Lesson Topic: Use arrays to store multiple values of the same data type |
Learning Objective/s:
- Describe what an array is and its characteristics.
- Explain why arrays are useful for storing multiple values of the same type.
- Demonstrate how to declare, initialise, and access array elements in pseudo‑code.
- Apply looping constructs to process all elements of an array.
- Identify and correct common array errors such as out‑of‑bounds indexing.
|
Materials Needed:
- Projector or interactive whiteboard
- Printed handout of array declaration table
- Laptop computers with a simple IDE or pseudo‑code editor
- Whiteboard and markers
- Practice worksheet with pseudo‑code exercises
|
Introduction:
Begin with a quick poll: “How many different variables would you need to store five test scores?” Connect this to the need for a single structure. Review the concept of variables and indexing. State that by the end of the lesson students will be able to create and manipulate arrays to solve problems.
|
Lesson Structure:
- Do‑Now (5'): Students list the variables they would need for a set of temperatures; teacher collects responses.
- Direct Instruction (10'): Explain array definition, indexing, and declaration using the table from the notes; show examples on the projector.
- Guided Practice (15'): Walk through initialising an array and accessing elements, then model a loop that calculates an average.
- Independent Activity (10'): Learners complete the practice question – write pseudo‑code to read 8 temperatures and output the highest value.
- Check for Understanding (5'): Quick quiz (exit ticket) where students write the correct syntax for accessing the third element of an array named
scores.
|
Conclusion:
Recap the key steps: declaring, initialising, accessing, and looping through arrays. Collect the exit tickets and highlight common mistakes observed. Assign homework: create a short pseudo‑code program that stores and averages a list of five user‑entered numbers.
|