Upload
russell-barton
View
212
Download
0
Embed Size (px)
Citation preview
STAGE 13 BEE: CONDITIONALS
OBJECTIVES
• Compare values using the = operator• Translate spoken language conditional statements
into a program• Identify when a conditional can be used to deal
with unknown values• Execute an algorithm with a conditional
statement• Solve puzzles using a combination of looped
sequences and conditionals
COMPUTER TIME
• Login• Username: bsmedia• Password:• Press Enter
• Open code.org icon to Mozilla Firefox• Login into code.org• Start Stage 13 Bee: Conditionals• Answer the first two questions• Stop for video: http://
studio.code.org/s/course2/stage/13/puzzle/3
CONDITIONALS
• Equal to (=) means it has to be that number• If nectar = 1 then get nectar• What happens if nectar is 1?• What happens if nectar is 0?
• Greater Than (>) means it has to be bigger than that number, that number is not included• If nectar > 1 then get nectar• What happens if nectar is 2?• What happens if nectar is 1?• What happens if nectar is 0?
• Less Than (<) means it has to be smaller than that number, that number is not included• If nectar < 4 then get nectar?• What happens if nectar is 7?• What happens if nectar is 4?• What happens if nectar is 2?
COMPUTER TIME
• Finish Stage 13 Bee: Conditionals• Answer the two questions• Stop at Stage 14 Binary Bracelets