Skip to main content

Section 5.11 Selection-WE5-P1

Subgoals for Evaluating Selection Statements.

  1. Diagram which statements go together
  2. For if statement, determine whether expression is true or false
  3. If true – follow true branch, if false – follow else branch or do nothing if no else branch

Subsection 5.11.1

Use this given setup for each of the questions below.
int alpha = 2, beta = 1, delta = 3, eta = 0, gamma = 0;

Exercises Exercises

1.
2.
You have attempted of activities on this page.