Sean's Scratch Lab #3

Name:Sean Ahmed

Period: 7

Assignment: Scratch Lab #3

Lab Overview

In this lab we use variables to store data which can be accesed later or using variables to alter speeds and sounds.

My Solution

My Project Link

My Project Link

My Project Link

Questions

  1. Are variables in computer programming the same as variables in math class? Why or why not?
    • Yes they are they can stand for an answer of number like in math.
  2. When creating a variable, what are the two types of scope a variable can have?
    • The scope is for all sprites or for only one sprite.
  3. How many values can a variable store at one time?
    • A variable can store one value at a time
  4. What will the following code snippet do? Explain why it doesn’t work as intended.
    • Because value 1 is changed to value 2 so when you try to change value_2 to value_1, value_1 is already equivalent to value_2 from the first command.
  5. Given the following code snippet, explain what is happening.
    • In this code snippet the temp is set to value_1 and then vaule_1 is set to value_2 then value_2 is set to the temp which is already value_1 so the command doesnt change anything after the first run as all the values become equal.