Week 5

Selection Statements

Learning Objectives

    if/else statements.

    Boolean Expressions.

    Nested if/else statements.

    switch statement.

At the end of the week you should be able to:

    Evaluate the value of a Boolean expression.

    Create a Boolean expression.

    Be able to use the Boolean operators && and ||.

    Use a simple if statement ina C++ program.

    Use a simple if/else statement in a C++ program.

    Use a nested if/else statement in a C++ program.

    Use a switch statement in a C++ program.

Reading Assignment

Section 2.4, Pages 83 - 93 (while loops)

Section 7.3 - 7.4, Pages 415-436 (More Loops, for loops)

Take-Home Assignment

[Home] [About Me] [Office Hours] [CIS 121] [CIS 123] [CIS 127] [CIS 226] [CIS 227]