5.4.1. Loops-WE4-P1ΒΆ

Subgoals for Evaluating a Loop

  1. Diagram which statements go together.

  2. Define and initialize variables

    1. Determine the start condition.

    2. Determine the update condition.

    3. Determine the termination condition.

    4. Determine body that is repeated.

  3. Trace the loop.

    1. For every iteration of the loop, write down the values.


Loops-WE4-P1

You have attempted of activities on this page