Overview
Students trace simple robot programs on paper to develop a sense of how to read and reason about code with if statements in it. The code is the same pseudocode used on the AP exam.Vocab
- Conditionals - Statements that only run when certain conditions are true.
- If-Statement - The common programming structure that implements "conditional statements".
- Selection - A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
Resources
-
Will it Crash? - Activity Guide (copy as MS Word, Google Doc)
-
Annotated Pseudocode: if-statements and Robot - Resource (copy as MS Word, Google Doc)
-
Breakdown - If-statements explained - Resource (copy as MS Word, Google Doc)