Scratch Lab 4 Write Up

Name: Jonathan Coppola

Period: 7

Assignment: Lab #1

THE LAB OVERVIEW FOR ALL PROJECTS CAN BE FOUND

Lab Overview

This lab required us to create a simple animation that moved faster or slower when buttons were pressed.

My Solution

I did this by having buttons that changed the time in between sprite changes.

My Project Link

Lab Overview

This lab required us to build a program that asked the user questions and had a conversation about the answers afterwards.

My Solution

I had a sprite of Mr Rogers say the answers to the questions by puting the answer in the say box

My Project Link

Lab Overview

This lab required us to create a program that converted feet and inches into millimeters, meters, and kilometers

My Solution

I had a program multiply the input to make it equal it's equivalent in metrics

My Project Link

Questions

  1. Are variables in computer programming the same as variables in math class? Why or why not?
    • the variables are different because in math class the variables represent unknowns and the variables in computer programing represent values in the code
  2. When creating a variable, what are the two types of scope a variable can have? That is, what can it affect. Think about your options as you make a variable
    • the variable can be for all sprites or for only the sprite the variable is created under
  3. How many values can a variable store at one time?
    • it can only store 1 value at a time
  4. What will the following code snippet do? Explain why it doesn’t work as intended.
    • the variables are switching values
  5. Given the following code snippet, explain what is happening.
    • the variables are all cycling to become eachother .