Share on Google+Share on FacebookShare on LinkedInShare on TwitterShare on DiggShare on Stumble Upon
Custom Search
 
  
 


MIL-HDBK-1013/12
<1> Conditional. A single selection
structure is the choice of two
actions based on some conditional.
Start
The conditional is presented in a
diamond-shaped box. In general,
the conditional poses a question
that requires a decision. If the
<1>
decision is yes, <2> is executed. If
Yes
Conditional
the decision is no, <3> is executed.
<2> Yes Sequence. This is the action
that is executed when a yes
No
decision results from the
conditional.
<3> No Sequence. This is the action
<2> Yes
<3> No Sequence
that is executed when a no decision
Sequence
results from the condition.
Stop
Figure A-5
Simple Selection Structure
A.4.2
Case Structure.  The case selection structure, shown in
Figure A-6, asks a question in the form of a conditional that
allows a choice from multiple actions.  A specific action is
taken for each response.
A.5
Iteration Structure.  Iteration is used to execute a
group of structures repeatedly while a condition is true.  This
handbook uses two types of iteration structures:  do while and
for.  The two structures are described in the following
paragraphs.
A.5.1
Do While Structure.  The do while structure, shown in
Figure A-7, asks a question in the form of a conditional and
executes a group of structures while the conditional is true.
A.5.2
For Structure.  The for structure, shown in Figure A-8,
executes a group of structures for a set number of iterations.
Execution stops when the set number of iterations is completed.
95








Western Governors University
 


Privacy Statement - Copyright Information. - Contact Us

Integrated Publishing, Inc. - A (SDVOSB) Service Disabled Veteran Owned Small Business