Complete program listing

A complete listing of the program is shown in Listing 8.