PATH: Instructional Server> COP 2000> Examples> Repetition>

Outlined Algorithm for a Middle Tested Repetition Structure


This web page contains a text-based alternative to a flowchart illustration shown in the web page The Repetition Control Structure (a.k.a. Looping) that shows an example of a repetitive control structure that tests for passage/exit in the middle of its body.

It is important to clearly describe logical control structures that involve branching away from the simple sequential flow of steps and the conditions upon which they are based. Outlines are well suited to this task because of the hierarchical nature of their lettered and numbered steps. Analysts often employ indentation using tabs or spaces to help clarify step subordination. If your rendering software cannot indicate the presence of such "whitespace" characters, be give careful attention to the labeling of the steps to determine the subordination of the steps.

A. Start "Middle Decision Generic Loop Example"
B. Do a loop pass:
   B.1. Loop body step 1.
   B.2. If a specific logical condition is false, exit the loop to the next major step.
   B.3. Loop body step 2.
   B.4. Do another loop pass.
C. End
PATH: Instructional Server> COP 2000> Examples> Repetition>