Upper Elementary
Computer Science
Conditionals: Changing Effects
Objective
Students will be able to create a program using conditionals.
Vocabulary
Conditional: A command that tells a program how to make a decision if something is true or false
?
Vocabulary
Boolean: A value that can only be true or false
This conditional is either…
True: Touching this color.
OR
False: Not touching this color.
What is the difference between these two code blocks?
What is the difference between these two code blocks?
This block only runs once, when the green flag is clicked.
This block will run over and over again, until the program ends.
This is commonly used to check a condition throughout a game.
You will create a program where the sprites are flying, changing effects.
Add a cat, a parrot, and a cloud.
Program the cat to fly.
Program the parrot to fly.
Program the cloud to glide across the page.
Program the cat to check for the parrot using a conditional.
Program the parrot to check for the cat using a conditional.
Continue programming.
Program more reactions among the sprites using conditionals.
Add and program other sprites.