CPE112 Chapter3
CPE112 Chapter3
Seventh Edition
Chapter 3
Understanding Structure
Objectives
In this chapter, you will learn about:
• The disadvantages of unstructured spaghetti code
• The three basic structures—sequence, selection, and
loop
• Using a priming input to structure a program
• The need for structure
• Recognizing structure
• Structuring and modularizing unstructured logic
Figure 3-6 Structured flowchart and pseudocode with three stacked structures