My Scratch Stuff

Scratch Lab #6

This is our sixth scratch lab. In this lab we deal with a complicated programming concept, conditionals, and incorporate it into our scratch projects. This time we had four assignments to do and I was able to finish all of them.

Pair Programming

The pair programming assignment for this lab was to have two sprites move and bounce off the edge. The hard part was getting them to touch each other and say "ouch" as well as have them keep going and gain more momentum. On top of that, if either of the sprites met in the third quadrant, they had to glide back into the first quadrant and start again. This project required a lot of trial and error.

Pair Programming assignment #6

Problem #1: Etch a Sketch

This was our first assignment. This assignment was the most simple out of all of them, and it was also very fun.

Etch a Sketch

Problem #3: Spelling Bee

This problem required the use of a new block which looks at letters of a value. Other than that the program was pretty easy to create.

Spelling Bee

Problem #4: Rock, Paper, Scissors

This program was the most fun to make out of all. In order to make the program work we had to create a random number for the cpu to have random choices between rock, paper, and scissors. The best part about this program is that it can be expanded to more than three elements.

Rock, Paper, Scissors

Questions for Scratch Lab 6

Question #1: Control Structures

What is the difference between and if and and if-else statement?

An if statement checks if the statement is fufilled and then executes code, but an if-else statements runs the code under else if the if condition is not met at first.

Question #2: Simpler version?

Is there a simpler way to write the following code? Explain.

No, there is not.

Question #3: Compound Conditionals

Which students are described by the following conditional?

The students that it is describing are the students who are not seniors or students who are on the soccer team or the band.

Question #5: Nested Conditionals

Write the condition for a number being a multiple of 15.

If the number (mod) 15 = 0, then it means that it has a remainder of zero and that is is a factor of 15.