The purpose of the displayData function

The purpose of this function (see Listing 4) is to access and display the values currently stored in the array.

These are the values that were stored in the array by the earlier execution of the getData function (see Listing 3).