Calling the getDistanceToChicken function

Display Listing 2.

The code in the main method in Listing 2 calls the getDistanceToChicken function on the coach and prints the results.

It is necessary to:

The procedure used to accomplish this is the same as in the earlier program.