Click here to start

Table of Contents


Error Example - Using = instead of ==

A Repetitive Structure - The while Loop

Our example while loop

Another while loop example

The pseudocode

Class Grade Average for 10 Students

Versatile ?

Why bother to make it easier ?

Using a Sentinel Value

The Priming Read

Pseudocode for Using a Sentinel to End a while Loop’s Execution

Using a Sentinel to End a while Loop

Using a Sentinel (continued)

The cast operator ( )

What Happens When We Cast ?

Author: Sue Bogar

Email: burt@umbc

Home Page: www.cs.umbc.edu/~burt