Lab Write Up
Name: Arman Williams
Period: 7
Assignment: Lab #6
Lab Overview
This lab focuses on if, ands, ors nand creating different outcomes depending on whether a statement is true or not.
HERE.
My Solution
I used a lot of repeat until, or wait until controlling blocks rather than forever blocks, because then they can be reused. I also used variables and equals, greater thans, and less thans.
My Pair project
Assignment 3
Assignment 4
Questions
- What is the difference between and if and and if-else statement?
- And if will only be true if both requirements pass, whereas if else, if something is true, then the if statement will play, otherwise it will do the else code.
- Is there a simpler way to write the following code? Explain.
- Put move 10 steps, then below that, if mouse x=0, say My mouse is at zero!
- 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…”
- Students who are on a soccer team, but aren’t seniors, and students who are in a band.
- 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…”
- Students who aren’t seniors
- Write the condition for a number being a multiple of 15. (hint: look at the mod block).
- If (x mod 15) = 0, then the number is a multiple of 15