Variables in Programming Js 2 Plan
LESSON PLAN
VARIABLES IN PROGRAMMING
| Lesson Details | Information |
|---|---|
| Subject | Digital Technologies |
| Class | JSS 2 |
| Term | Second Term |
| Week | 4 |
| Topic | Variables in Programming |
| Duration | 80 Minutes (Double Period) |
| Date/Period | ________________________ |
1. Learning Objectives
By the end of the lesson, students should be able to:
- Explain the meaning of a variable in programming.
- State the uses of variables in computer programs.
- Give examples of information that can be stored in variables.
- Create and name variables correctly in Scratch.
- Use Scratch variable blocks to set and change values in a simple program.
2. Previous Knowledge
Students have been introduced to block-based programming using Scratch and have practised arranging programming blocks to control sprites and create simple animations.
3. Instructional Materials
- Computers or laptops.
- Scratch programming environment.
- Projector or display screen.
- Sample Scratch programs containing variables.
- Whiteboard and markers.
- Coding exercises and activity sheets.
4. Reference Materials
- Digital Technologies lesson note on Variables in Programming.
- Scratch interface and built-in help resources.
- Teacher-prepared examples and practical exercises.
5. Lesson Presentation
| Stage/Time | Teacher's Activities | Students' Activities |
|---|---|---|
| Stage 1: Introduction 5 minutes |
Asks students how they record examination scores or count items. Introduces the idea of storing information that may change. | Respond to questions and give everyday examples of changing values. |
| Stage 2: Meaning of Variables 10 minutes |
Defines a variable as a named storage location for data. Explains examples such as Score, Age, Count and StudentName. | Listen, take notes and identify information that can be stored in variables. |
| Stage 3: Uses and Naming 15 minutes |
Explains how variables store information, keep scores, count events and support calculations. Demonstrates meaningful variable names. | Give examples of variable uses and suggest suitable names for different types of information. |
| Stage 4: Creating Variables in Scratch 15 minutes |
Demonstrates opening the Variables category, selecting Make a Variable and creating a variable named Score. Explains the set, change, show and hide blocks. | Observe the demonstration and follow the steps on their computers where available. |
| Stage 5: Practical Activity 25 minutes |
Guides students to create a Score variable, set it to 0 when the green flag is clicked and increase it by 1 when a sprite is clicked. Checks their programs. | Create the variable, join the correct blocks, run the program and observe how the score changes after each click. |
| Stage 6: Evaluation and Conclusion 10 minutes |
Asks oral questions, corrects misconceptions and summarises the meaning, uses and manipulation of variables. | Answer questions, demonstrate understanding and state what they have learnt. |
Total Duration: 80 Minutes
6. Evaluation
Ask students the following questions:
- What is a variable in programming?
- Mention four uses of variables.
- Give three examples of meaningful variable names.
- How do you create a variable in Scratch?
- Differentiate between the set and change variable blocks.
- Describe how to create a simple score counter in Scratch.
7. Assignment
- Define a variable and state three uses.
- List five examples of variable names and the information each can store.
- Explain three guidelines for naming variables correctly.
- Describe a Scratch program that sets Count to 0 and increases it by 1 whenever a sprite is clicked.
8. Teacher's Reflection
Were students able to explain variables, create them in Scratch and use variable blocks correctly? Identify students who need additional practical guidance.
Teacher's Remarks: ______________________________________________
Head Teacher's Signature: _______________________________________
Comments
Post a Comment