Scratch Lab 6

Pair Programming

Problem #1

Problem #2

Questions

  1. What is the difference between and if and and if-else statement?
  2. "If" completes the code below if the statement is true. If the statement is false nothing will happen. "If-else" completes the code below if the statement is true. If the statement is false it will complete the code below "else".

  3. Is there a simpler way to write the following code? Explain.
  4. Yes. "move 10 steps" could be at the beggining and an if statement could be used with the say command.

  5. 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…”
  6. Juniors, Sophomores, and Freshman who are on the soccer team or in a band.

  7. 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…”
  8. Seniors who are on the soccer team.

  9. Write the condition for a number being a multiple of 15.
  10. 15 goes in the first space of the "mod" block and number in question goes in the second space. If the output is zero, then the number is a multiple of 15.