Name: Flavia Rodrigues
Period: 7
Assignment: Lab #6
In this lab we are meant to not use the command glide. This is actually not difficult because you are able to change the x position and the y position of a sprite easily.
This solution was very simple because I've made the sprite move around the screen before so I had experience. All I really had to do was make several if/then statements and make the cat change its x or y coordinate. Then when spacebar is pressed, the whole screen is cleared.
In this solution, I had to invent a game of rock paper scissors. All i did was set the computers choice to random everytime you click on a sprite. The puppy is just thereto make it cuter. You can click on him for a new game.
1. What is the difference between and if and anid if-else statement?
The difference is, with the and-if statement there is only one output, but with the other statement there are 2 outputs.
2. Is there a simpler way to write the following code? Explain.
Yes,you can make a vairiable for the mouse i think.
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…”
Students that are not seniors in a soccer team and students that are in a 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…”
Students that aren't seniors, soccer players and those in a band.
5. Write the condition for a number being a multiple of 15.
(If *variable mod 15 =0), then it is divisible by 15.