Components of Programming
Virginia SOL CM.CP.2
Construct Boolean expressions and implement conditional statements.
What students need to be able to do
- Write and implement Boolean expressions using logical and relational operators (e.g., !, &&, ||, ==, <, >, >=, <=, !=).
- Write and implement 'if' conditional statements.
- Write and implement 'if/else' conditional statements.
- Write and implement compound conditional statements (e.g., nested conditionals, chained conditional statements).
- Determine which parts of an algorithm are executed based on a condition being true or false.