Scratch Lab 6 Write Up
Name: Olivia Moore
Period: 7
Assignment: Scratch Lab #6
Lab Overview
This lab was based on conditionals and having more variables that determine whether something happens and at what time. We were to complete 2 out of 4 problems to code with multiple conditionals to make a sprite draw something while it moved, and it was to be controlled by the user. Also, we made a sprite ask for a word and it would spell that word back to the user. We worked with "if...then/...else" controls and storing information in the codes in this lab. The full lab description is found HERE.
My Solution
My solution is to use conditionals that let the user press the arrow and space keys to control the sprite and make a pretty picture. Also, I used variables and condtitionals to store a word the user provides and is spelled to the user like magic! At least with the magic of computing technology. Conditionals make codes be more customized and complex to get a sprite or program do what you want.
Questions
- If-else statements tell a sprite a condition and a back-up plan if the condition does not happen, whereas an if statement only gives a sprite a condition with nothing else to do.
- You could just say "move 10 steps" and have the "if mouse x=0 then say 'mouse is at zero!'" separate. You don't need to repeat the "move 10 steps;" it's just extra work.
- The students described are juniors or younger on the soccer team and (separately) anyone who is in band.
- The sutdents described are any juniors or younger, anyone on the soccer team, and anyone in band.
- "ask give me a number" "set x to answer" "if ((15mod(x))=1,3,5,15) then..."