 |
|
|
|
|
Testing and Debugging |
|
|
|
| |
 |
|
|
|
|
Stubs and Drivers |
|
|
|
| |
 |
|
|
|
|
Testing and Debugging Hints |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Quick Check |
|
|
|
| |
 |
|
|
|
|
Exam Preparation Exercises |
|
|
|
| |
 |
|
|
|
|
Programming Warm-Up Exercises |
|
|
|
| |
 |
|
|
|
|
Programming Problems |
|
|
|
| |
 |
|
|
|
|
Case Study Follow-Up |
|
|
|
| |
|
|
|
|
|
9
Additional Control Structures |
|
|
|
| |
 |
|
|
|
|
The Switch Statement |
|
|
|
| |
 |
|
|
|
|
The Do-While Statement |
|
|
|
| |
 |
|
|
|
|
May We Introduce: Admiral Grace Murray Hopper |
|
|
|
| |
 |
|
|
|
|
The For Statement |
|
|
|
| |
 |
|
|
|
|
The Break and Continue Statements |
|
|
|
| |
 |
|
|
|
|
Guidelines for Choosing a Looping Statement |
|
|
|
| |
 |
|
|
|
|
Loop Invariants as Program Comments |
|
|
|
| |
 |
|
|
|
|
Problem-Solving Case Study: The Rich Uncle |
|
|
|
| |
 |
|
|
|
|
Problem-Solving Case Study: Monthly Rainfall Averages |
|
|
|
| |
 |
|
|
|
|
Testing and Debugging |
|
|
|
| |
 |
|
|
|
|
Testing and Debugging Hints |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Quick Check |
|
|
|
| |
 |
|
|
|
|
Exam Preparation Exercises |
|
|
|
| |
 |
|
|
|
|
Programming Warm-Up Exercises |
|
|
|
| |
 |
|
|
|
|
Programming Problems |
|
|
|
| |
 |
|
|
|
|
Case Study Follow-Up |
|
|
|
| |
|
|
|
|
|
10
Simple Data Types: Built-In and User-Defined |
|
|
|
| |
 |
|
|
|
|
Built-In Simple Types |
|
|
|
| |
 |
|
|
|
|
Integral Types |
|
|
|
| |
 |
|
|
|
|
Ranges of Values |
|
|
|
| |
 |
|
|
|
|
Constants |
|
|
|
| |
 |
|
|
|
|
Floating Point Types |
|
|
|
| |
 |
|
|
|
|
Ranges of Values |
|
|
|
| |
 |
|
|
|
|
Constants |
|
|
|
| |