What is the difference between an if and if-else statement?
The if and statement makes it so a certain requirement must be met. The if else allows for if the requirement isn't met, to have another reactionj.
Is there a simpler way to write the follwing code? Explain
It can be changed to just be an if statement, because the else is the same as the if statement. The sprite will move 10 steps regardless if x is 0 or not.
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 the band then..."
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 the band then..."
It includes all people who aren't seniors, regardless if they play soccer or not.
Write the conditoin for a number being a multiple of 15
if value mod 15 = 0, then say number is divisible by 15, else, it is not divisible by 15