My Scratch Stuff
Assignments
Pair Programming
Here, my partner, Randy, and I were tasked with making two sprites bounce around the entire area. Alos, if they collided with eachother they would say "Ouch!" and bounce off of each other in random directions. Also, if they touched when they were both in the third quadrant (Bottom Left) they would glide to the first quadrant (Top Right).
Click here for the project link.
Etch a Sketch
This program was fairly easy to make, I had to make it so if any of the arrow keys were pressed, the bananan would point in that direction, also for it to continuously move forward. It was fairly easy to finish.
Click here for the project link.
Spelling Bee
In this program I had to make it so when the user entered any word, the sprite would spell it back to you letter for letter. Alos, I had to make it so if the word was longer thatn 10 letters to ask for a new word that was less than 10 letters. It was also very easy to make.
Click here for the project link.
Rock, Paper, Scissors
Rock, Paper, Scissors is a very common game and it was not particularly easy to make. I had to make it so when the user picked rock, paper, or scissors the computer would pick one at the same exact time. Alos I need to mnake it random which wasn't easy. After that, I needed a way to keep track of each of the players wins.
Click here for the project link.
Questions
- What is the difference between and if and and if-else statement?
- In an if statement, only one action will occur if the "if" is met. In an if-else statement, there are two actions that can take place. When the if is met, one action will occur, and if it isn't met then the else will occur.
- Is there a simpler way to write the following code? Explain.
- No there isn't. In the given code, everytime the mouse x-coordinate is 0, it will continue to move 10 steps and will say "My mouse is at zero!" and if the mouse's x-coordinate isn't 0 then it will continue to move 10 steps.
- 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…”
- The statement is talking about anyone who is not a Senior and also one that plays on the soccer team or is in the 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…”
- The statement is talking about anyone that is not a Senior or anyone that is on the soccer team or in the band.
- Write the condition for a number being a multiple of 15. (hint: look at the "Mod" block).
- In Scratch, if the "Number" "Mod" "15" = 0, then that number would be a factor of 15. And if there was any other number, then that is the remainder when divided by 15.