3.2.1. Selection-WE2-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 there is no else branch).


Select-WE2-P1

Each question below is independent, but they all use this given setup

int alpha = 2, beta = 1, delta = 3, eta = 0, gamma = 0;
double omega = 2.5, theta = -1.3, kappa = 3.0, lambda = 0.0, rho = 0.0;
You have attempted of activities on this page