Lab Write Up

Name: Arman Williams

Period: 7

Assignment: Lab #7

Lab Overview

This lab focuses on using blocks to simplify your code. HERE.

My Solution

I basically remade earlier labs, but used blocks throughout them rather than keeping all the code in one long set.

My Pair project

Assignment 1

Assignment 2

Questions

  1. What are two advantages to using blocks for code repetition?
    • The code can all be simplified into one command, and you can use that however many times you want.
  2. What are parameters?
    • Inputs you can use in a block, the same way as in regular code.
  3. Give an example of a formula that takes at least one parameter.
    • The area formula for a rectangle, you take a number and plug it into the equation: Length X Height
  4. Give an example of a situation where no parameters are needed
    • Any code were all it does is wait, move a set distance, or say something are a few examples.
  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 think this program takes names and orders them somehow. They give an understandable non coding explanation of sets of code. In the 'get name' block, I assume would take a name, 'insert into list' would put it in a list, 'reorder list' would organize the list, and place the name in it's correct place, and continue would just continue to the next part of the program.