5
STAGE 13 BEE: CONDITIONALS

STAGE 13 BEE: CONDITIONALS. OBJECTIVES Compare values using the = operator Translate spoken language conditional statements into a program Identify when

Embed Size (px)

Citation preview

Page 1: STAGE 13 BEE: CONDITIONALS. OBJECTIVES Compare values using the = operator Translate spoken language conditional statements into a program Identify when

STAGE 13 BEE: CONDITIONALS

Page 2: STAGE 13 BEE: CONDITIONALS. OBJECTIVES Compare values using the = operator Translate spoken language conditional statements into a program Identify when

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

Page 3: STAGE 13 BEE: CONDITIONALS. OBJECTIVES Compare values using the = operator Translate spoken language conditional statements into a program Identify when

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

Page 4: STAGE 13 BEE: CONDITIONALS. OBJECTIVES Compare values using the = operator Translate spoken language conditional statements into a program Identify when

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?

Page 5: STAGE 13 BEE: CONDITIONALS. OBJECTIVES Compare values using the = operator Translate spoken language conditional statements into a program Identify when

COMPUTER TIME

• Finish Stage 13 Bee: Conditionals• Answer the two questions• Stop at Stage 14 Binary Bracelets