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

  1. 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.
  2. Variables can be created to affect all sprites, or for a single sprite.
  3. A variable can only store one value at a time.
  4. 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.
  5. `
  6. 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.