Demonstrate the use of two or more conditional statements using logical operators (i.e., AND, OR, NOT).
Demonstration should include logical operators:
- AND, which seeks both sides to be TRUE
- OR, which seeks one side to be TRUE
- NOT, which seeks the reverse result
Note that the AND operator attaches itself to the nearest statement, and parentheses may be needed to force the order of operations.
Related Standards of Learning
The student will implement conditional statements that include “if/then” statements, “if/then/else” statements, case statements, and Boolean logic.
The student will implement various mechanisms for performing iteration with an algorithm