Control Flow
3 class hours
Control Flow: if-else
- What is control flow: sequential v. conditional
- Flow-charting
- Anatomy of an
if
-else
statement - Tracing an
if
-else
statement
Boolean Expressions
- Simple
bool
expressions - Compound expressions using
cp::and
,cp::or
, andcp::not
- Hands-on examples
Variants of if-else
if
withoutelse
if
-else
chain- Solving a problem using flow-chart and pattern