The Payroll Program
Loop Revisited

Looping Subtasks

Counting

Summing

Another Summing Example

Recognizing Two
Character Sequences

Recognizing Two
Character Sequences

More Recognizing Two
Character Sequences

Recognizing Two Character
Sequences (The End)

How to Design Loops

Is This a Well-Formed Loop?

Is This a Well-Formed Loop?
- No, So Fix It

Nested Logic

Another Nested Loop Example

Problem-Solving Case Study

Problem-Solving Case Study (Continued)

"//*****************************************************"

Problem Solving Implementation

Problem Solving Implementation

"incFile >> sex >> amount"

Problem Solving Implementation

Problem Solving Implementation

One More while Loop