Scratch Lab 4
Costume Change
Click HERE to go to site
The Distance Formula
Click HERE to go to site
Pump it Up
Click HERE to go to site
Scratch Lab 4 Questions
- No, variables are not the same in computer programming as they are in math. In programming, a variable can hold data and assigned values, while in math, variables are constants.
- Variables can be created to affect all sprites, or for a single sprite.
- A variable can only store one value at a time.
- The code snippet is supposed to switch the values of variable one and two, but this process requires a third variable, because their numbers can't be lost or stored on more than one variable.
` - In this snippet, the value of variable two goes to the variable "temp," then variable one's value is assigned to variable two, then what was variable two's value, now on variable temp, is assigned to variable one.
Click HERE to return to homepage.