V0 | Variables are used to represent data “types” of different kinds |
V0a | Different data types serve different purposes. Some data types are string, numeric, list, array, record. |
V0b | Data types determine the kinds of operations that can be performed on the variables |
V1 | Variables hold only one value at a time. |
V2 | Use a variable in a program |
V2a | Use a Boolean variable to control a loop |
V2b | Use an expression with a variable to control a loop |
V2c | Use an expression with a variable in a conditional |
V3 | How to update a variable value (in different ways) |
V3a | How to update a variable value for a variety of purposes (counting, aggregating, flag, etc) |
V3b | Updating a variable value within a loop |
V3c |
Update a loop-controlling variable value within a loop
|
V3d | Using arithmetic, relational, string, and Boolean operators to update variable values |
V4 | Declaring a variable and initializing a variable |
V4a | Giving variables meaningful names |
V4b | Decide on an appropriate initial value for a variable |
V5 | Define and use a variable for the purpose of holding user input. |
V6 | Using variables as parameters in procedures and functions. |
V7 | Using expressions to create new variables from existing ones |
The meanings of variable names affect what they do; for example a variable called “longest” will contain the longest string |
Assignment statements are basically equations; Sequences of assignments are basically groups of equations |
A variable can have multiple values at once |
a=b relocates a value from b to a; b becomes empty in the process |
a=b forms a link between the 2 variables (if one changes, the other does as well) |
Assignment works differently for different data types |
A variable is only a variable if it has a single-letter name (like x or y in Mathematics) |
Any two variables with the same name are the same variable though they have different scope (related to functions) |
Watch and read about Dr. Katie Rich and Carla Strickland’s work to develop a learning trajectory for variables, and designed a curriculum that integrated math and computing and focused on the learning of variables.
Coming Soon