The loop control variable named quit

One of the variables declared in Listing 6 is named quit.

This variable is used in the conditional test in the loop structure.

The variable named quit is initialized to false.

The program continues to loop for as long as the variable named quit continues to have a value of false.

The value of quit is controlled by the return value from a function named doSelection.

The function named doSelection implements a selection structure.

When the value of quit becomes true, the loop terminates.