Name: Flavia Rodrigues
Period: 7
Assignment: Lab #7
This Lab intrduced a completely new concept. We learned to actually make blocks. We can add partameters to the blocks so they can do more things. Keep in mind that a block is not the same thing as broadcsting so don't get them confused.
In this problem we had to work with the area of a rectangle. We had to then take that same area and see what sides would get us that. Then again, we had to take that area and see what triangle it applied to. It was hard for me to figure out how to find the side lenths of the triangle because I wasn't sure what equation to use.
For this problem we focused on coversions. First we had to convert feet into miles. Then we had to convert miles to inches. To do this, all we did was make the sprite ask how many feet then we used an if and else statement to program what will happen if the answer is over or under 5280.It was actually very simple unless you try to over analyze it.
1.What are two advantages to using blocks for code repetition?
Using the block makes the codes simpler, which is all a coder really wants in life.
2.What are parameters?
Parameters are the inputs you can add to the blocks. It is used to define your block.
3.Give an example of a formula that takes at least one parameter.
Converting feet into inches uses at least one parameter.
4.Give an example of a situation where no parameters are needed.
No parameters are needed to make your sprite move around. You can change x and y when doing that.
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.
This block makes a list. I think the sprite will ask for a name then put into a list. Then it will organize the list in a different manner and the move on. It will do this until the task is complete.