Write a program that uses conditional structures.
DefinitionThe program should include any of the following conditional structures:
- If structure
- If/Else structure
- Else/If structure
- Nested If structure
- Switch structure
- AND, OR, NOT
- greater than, greater than or equal to, less than, less than or equal to, equal to, not equal to.
Related Standards of Learning
The student will write program specifications that define the constraints of a given problem.
The student will select and call library functions to process data, as appropriate.
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
The student will select and implement appropriate data structures, including arrays (one- and/or two-dimensional) and objects.