Using the user-input value

Display Listing 2.

The modified call to the turn method:

User input data controls this aspect of the behavior of the program.