OBJECTIVES
After studying this chapter, you will
Be able to solve problems involving repetition.
Understand the differences between various loop structures.
Know the principles used to design effective loops.
Improve your algorithm design skills.
Understand the goals and principles of structured programming.
OUTLINE
6.1
Introduction
6.2
Flow of Control: Repetition Structures
6.3
Counting Loops
6.4
Example: Car Loan
6.5
Graphics Example: Drawing a Checkerboard
6.6
Conditional Loops
6.7
Example: Computing Averages
6.8
Example: Data Validation
6.9
Principles of Loop Design
6.10
The switch Multiway Selection Structure
6.11
Object-Oriented Design: Structured Programming
What Can Be Computed?
Chapter Summary
Solutions to Self-Study Exercises
Exercises