pptx, 8.09 MB
pptx, 8.09 MB

KS2/KS3/Home-Ed/Home-school/Self-study/Computing/Coding/Computer Science

Lesson 8. Variables and Data Tracking

  • Brief recap of conditional farming algorithms and a starter logic quiz

  • Introduction to variables as named storage locations for data in memory

  • Demonstrating variable creation in MakeCode for tracking numbers and items

  • Teacher modelling: creating a counter variable to track blocks mined by Agent

  • Guided task: initializing, updating, and outputting variable values on screen

  • Student activity: code the Agent to count specific resource types encountered

  • Discussion on data types: integers, strings, and booleans in computer science

  • Interactive check: tracking variable state changes through a code trace table

  • Independent task: create a resource collection scoreboard using variables

  • Debugging exercise: fixing scope and initialization errors in variable logic

  • Student reflection on how variables allow dynamic program outputs

  • Lesson wrap-up summarizing variable declaration, assignment, and modification

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.