Scratch Lab 6

Name: Chris Theo

Period: 7

Assignment: Lab #6

Lab Overview

In this lab we focused on more complex codes involving If Then questions, operators, and sensing blocks. HERE.

My Solution

My solution to the problem of making a sprite controlled by the arrow keys and space bar, but also making this sprite draw a line behind itself wherever it moved then resetting when the space bar is pressed.

My Project Link

My Solution

The problem of this scratch project was to have one sprite obtain a word, then have another sprite spell out this word. If the word is longer than 10 charactors the sprite will tell you to ener a new word.

My Project Link

Questions

  1. What is the difference between and if and and if-else statement?
    • An If-Else statement consists of code that will do something differernt if the expected answer isn't given. An If Then statement is a statement that confrims somethign happened and then proccesses the entered code for that process.
  2. Is there a simpler way to write the following code? Explain.
    • Yes, you could just send a command to start at a certain point instead of having "Move 10 Steps". You could also just have a forever loop instead of the If Then code.
  3. Which students are described by the following conditional? “if you are not a Senior and you are on the soccer team or you are in band then…”
    • This is describing people who arent Seniors, who play soccer, and are in band.
  4. If the statement from Question 3 is changed as shown below, who else is included in the condition? “if you are not a Senior OR you are on the soccer team or you are in band then…”
    • People who don't play soccer and who aren't seniors are now included in the condition.
  5. Write the condition for a number being a multiple of 15. (hint: look at the block).
    • If the number is a multiple of 15 then you will get the remainder of...

Click HEREto return to homepage