< previous page page_185 next page >

Page 185
5
Conditions, Logical Expressions, and Selection Control Structures
GOALS
To be able to construct a simple logical (Boolean) expression to evaluate a given condition.
To be able to construct a complex logical expression to evaluate a given condition.
To be able to construct an If-Then-Else statement to perform a specific task.
To be able to construct an If-Then statement to perform a specific task.
To be able to construct a set of nested If statements to perform a specific task.
To be able to determine the precondition and postcondition for a module, and use them to perform an algorithm walk-through.
To be able to trace the execution of a C++ program.
To be able to test and debug a C++ program.

 
< previous page page_185 next page >