Instruction Guide: Variables

Printer-friendly version

In this lesson students explore the use of variables in NXT-G.

Have students work through the "Variables" lesson on the "Advanced" page in "NXT Video Trainer 2.0".

Students should be able to answer all the review questions at the end of each step and end up with a solid command of the purpose and functionality of variables.

As students progress through, have them document their milestones in the Variables Task Assignment Sheet.

Line Locator Challenge 1

This page contains a copy of this challenge from "NXT Video Trainer 2.0."

Key learning to check for during sign-off includes:

  • Ensure students understand the nature of the Variable Block:
    • Variables must be defined before they are used
    • Variables are specific to a Data TypeA¬†value needs to be written to a Variable Block before using it
    • A value may be read from a Variable block once it has been written
  • Ensure students understand the operation of the Number-toText Block, required to display the varibles data on the screen.