Chapter 9 Outcomes
The Elements of Programming: Selection


After completing this chapter and participating in class, you should be able to accomplish each of the following outcomes.

Knowledge Outcomes

  1. Define each of the key terms listed in the chart below.

  2. selection then clause else clause
    relational operator three-way selection cascaded selection
    multi-way selection nested selection case construct
    otherwise clause user-friendly program  

  3. Explain how relational operators can be used to not only compare numbers, but also words.

  4. Describe how each of the following if statements behave:

  5. Explain the idea of nested if's. Be sure to distinguish between the part of the nested if which is at the most general level of detail, and the part of the nested if which is at the greatest level of detail.

  6. Explain the difference between how the case and if statements are used to select items.

  7. Explain the difference between a cascaded selection and a nested selection.

  8. Describe the techniques a programmer can use to create user friendly programs.

Skills Outcomes

  1. Apply the systematic method of problem solving to a problem requiring the use of a selection construct.

  2. Use the following relational operators in an if statement:

  3. Structure your logic correctly in a cascaded if statement.

  4. Read and follow the logic of a flowchart in order to understand how the if statement works.

  5. Use case, label, and end case, to create a multi-way selection statement.

  6. Create programs using all of the types of if statments shown below:

  7. Detect and correct a variety of common errors when creating selection constructs as outlined in the chapter.