Scratch Lab #7

  • ABOUT ME
  • JAVA PROJECTS
  • PYTHON PROJECTS
  • SCRATCH PROJECTS
  • WEB DEVELOPMENT
  • GOOGLE 20
Scratch

My Scratch Stuff

Click HERE to return to homepage.

For this project I made a sprite ask question about two coordinates and using variables and blocks, the sprite would then solve for the distance between those two points.



For this project I created a sprite that asked for a number of feet and it would then convert it into either miles or inches depending on whether it is greater than 5280 or not.



Question 1: The advantage of using blocks is to minimize the amount of blocks used. A long series of code that is used often can be minimized to one block.


Question 2: Parameters are the components that a new block relates to.


Question 3: An example of a block with a parameter is a block that creates the disctance formula as I did in one of my labs.


Question 4: A situation with no parameters is one that a number just needs to be doubled and a new block just does that.


Question 5: I think this block would create a list based on items said by the user. Blocks make this easier to understand because what would have been a long list of blocks is now one block. Each block most likely does exactly what its name says.