20.01.2015 Views

Programming Logic and Design Sixth Edition

Programming Logic and Design Sixth Edition

Programming Logic and Design Sixth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Recognizing Structure (continued)<br />

• Single process like G is part of an acceptable<br />

structure<br />

– At least the beginning of a sequence structure<br />

Recognizing Structure (continued)<br />

• H begins a selection structure<br />

– Sequences never have decisions in them<br />

– <strong>Logic</strong> never returns to G<br />

Figure 3-22 Untangling Example 3, first step<br />

<strong>Programming</strong> <strong>Logic</strong> & <strong>Design</strong>, <strong>Sixth</strong> <strong>Edition</strong> 31<br />

Figure 3-23 Untangling Example 3, second step<br />

<strong>Programming</strong> <strong>Logic</strong> & <strong>Design</strong>, <strong>Sixth</strong> <strong>Edition</strong> 32<br />

Recognizing Structure (continued)<br />

• Pull up on the flowline from the left side of H<br />

Recognizing Structure (continued)<br />

• Next, pull up the flowline on the right side of H<br />

Figure 3-24 Untangling Example 3, third step<br />

<strong>Programming</strong> <strong>Logic</strong> & <strong>Design</strong>, <strong>Sixth</strong> <strong>Edition</strong> 33<br />

Figure 3-25 Untangling Example 3, fourth step<br />

<strong>Programming</strong> <strong>Logic</strong> & <strong>Design</strong>, <strong>Sixth</strong> <strong>Edition</strong> 34<br />

Recognizing Structure (continued)<br />

• Pull up the flowline on the left side of I <strong>and</strong> untangle<br />

it from the B selection by repeating J<br />

Recognizing Structure (continued)<br />

• Now pull up the flowline on the right side of I<br />

Figure 3-26 Untangling Example 3, fifth step<br />

<strong>Programming</strong> <strong>Logic</strong> & <strong>Design</strong>, <strong>Sixth</strong> <strong>Edition</strong> 35<br />

Figure 3-27 Untangling Example 3, sixth step<br />

<strong>Programming</strong> <strong>Logic</strong> & <strong>Design</strong>, <strong>Sixth</strong> <strong>Edition</strong> 36<br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!