My Projects

My Lab 7 Scratch Assignments

Problem #1

Problem #2

What are two advantages to using blocks for code repetition?

- two advantages to using blocks for code repetition are that it makes the code simpler and it makes it easier to code in the long run.

What are parameters?

- a parameter is a special kind of variable

Give an example of a formula that takes at least one parameter.

- An example of a formula that takes at least one parameter is when a sprite asks one question and it would need a certain answer to trigger a certain response. If it has not recieved that response, it would lead to a differant kind of code.

Give an example of a situation where no parameters are needed

- an example of a situation where no parameters are needed is when a sprite asks a question and no matter what the answer is it will trigger the same response.

Explain what you think the following program does? How do blocks make this easier to understand? Explain what you would expect within each block.

- The following program gets information from the person and in order for the task to be complete, the person must fill out the information. The "Get name" block would try to get the person's name while "insert into list" would put his name on the list and "reorder list" would put the list into alphabetical order and then continue.

Click HERE to return to homepage.