Section 2 Chapter 8 - Structured Programming Flashcards
The three basic programming structures
- Sequence
- Selection
- Iteration
Sequence
One statement followed by another
Selection
Choosing which statements to execute - “branching”
Iteration
Repeating statements usually through the use of loops
A block
A section of code consisting of one or more statements. Can also be a subprogram.
Top-down design
The technique of breaking down a problem into subtasks sufficiently small enough to be written as a self contained module or subprogram
Hierarchy Chart
A chart that represents the structure of a program with each step being broken down into submodules
Limitations of a Hierarchy Chart
Does not show program structures such as iteration and selection
Structured Programming
A approach to programming that makes use of subroutines, block structures and loops in order to improve the clarity and maintainability of a program