Name: Flavia Rodrigues
Period: 7
Assignment: Lab #2
This lab foxused alot more on repetition. We were meant to learn how to make the sprites repeat things.It mostly involved using the "repeat" command. I also learned how to create my own sprite then name it whatever I want. In one of the problems, we did a similar thing to what we did on the last lab, we made shapes but this time we used the "repeat" command. This made it much simpler.
For my first solution, i created a sprite and named her after my self. Then i gave her several different costumes and made her say different things. This problem was easy because I mostly just drew different cloths on her.
For my second solution i did the smae thing i did on the last lab, but this time i just made it repaet something sevral times. To make a circle, i made the sprite turn less but i had him turn more times in order for the circle to be created smoothly.
For the last problem, i created five different sprites and made them do the commands on the problem explanantion. All my sprites went different speeds and stopped and started at different times.
1. What are the types of loops contained in Scratch? What are the differences?
There are loops where you tell them how many times you wanted something repeated and there are loops where you can have something repeat forever.
2. If you are given a situation where you want an action to repeat, but you don’t know how long it should repeat for, which loop is the best structure to use? Why?
You can use a blank repeat because then you won't need an exact amount of time for it to repeat.
3. Does the following loop structure work? Does it make sense? Why or why not?
No I do think this will work, I just think that the sprite will say both things at the same time.
4. How can sprites “know” when to begin an action? Is there more than one way?
When you go to events, there are sevral different options to command your sprite to start something. You can have things like when the flag is clicked or when the spacebar is clicked, ect.
5.Are the following code snippets equivalent? Why or why not?
Yes they are equivalent, but they will do it in a different order.