# My Scratch Stuff

## Assignments

#### Pair Programming

Here we had to make a cat and a boy dance.

#### 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.

#### 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.

## Questions

1. 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.

2. What are parameters?
• A parameter is a value that helps solve a problem or equation.

3. Give an example of a formula that takes at least one parameter.
• The Distance Formula takes parameters.

4. 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.

5. 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.