My Scratch Stuff
Assignments
Pair Programming
Here we had to make a cat and a boy dance.
Click here for the project link.
Distance Formula Revisited
Here, I just had to make a custom block, and make that block calculate the distance instead of having the formula in my code.
Click here for the project link.
Feet to Miles or Inches
Here I had to make the Scratch ask the user for a distance in feet, and then have a custom block calculate the conversion, and then broadcast that calculation back to the user.
Click here for the project link.
Questions
- What are two advantages to using blocks for code repetition?
- You are able to define how you specifically want it done, instead of messing around with premade blocks and getting confused.
- What are parameters?
- A parameter is a value that helps solve a problem or equation.
- Give an example of a formula that takes at least one parameter.
- The Distance Formula takes parameters.
- Give an example of a situation where no parameters are needed.
- a pre-defined value or distance where you don't need to input a value.
- Explain what you think the following program does? How do blocks make this easier to understand? Explain what you would expect within each block.
- I would expect that code to take names and to put them in an "Alpha" Order. The custom blocks make it easier to understand because they are defined by the user and are put into easy to understand english. The "Get Name" would ask the user for a name. "The "Insert Into List" would add the name the user gave. The "Reorder List" would reorder the list of names and include the new name. The "Continue" would restart the process.