Scratch Lab 4 Write Up

Name: Olivia Moore

Period: 7

Assignment: Scratch Lab #4

Lab Overview

This lab was based on variables and more complex animations. We were to complete 3 out of 5 problems to code with multiple variables to animate the speed of a sprite moving and controlling speed or answering questions and storing those answers. We worked with speed, questions, and volume in this lab. The full lab description is found HERE.

My Solution

My solution is to use variables I named called speed and use them on a different sprite to let the user control that sprite and make it move faster or slower. Also, I used variables to store information the user provides about him or herself and is recited to another sprite like magic! At least with the magic of computing technology. Variables make codes be more customized and complex to get a sprite or program do what you want.

My Project Link

Questions

  1. No, variables are not the same in math class as computer programming because in CP, they are used to control sprites and aren't just y or x values. However, they are similar in that they both represent an input and control an output, but they don't have just one "job."
  2. A variable can affect the degree of something in terms of x or y or the speed or volume of something.
  3. A variable can store one thing at one time, but you can have multiple variables to control and store multiple things.
  4. It doesn't have actual code like the if/then controls; it has to have more than that. Plus, it's just flipping x and y like inverses.
  5. The temperature is value_1, value_1 is value_2, and the value_2 is the temperature.