Call five functions in succession
The code in Listing 2 calls the
following five functions in succession to perform the indicated operations on
the array:
- getData: Get data from the
user and and use that data to populate the array
- displayData: Display the
contents of the array
- getAvg: Compute and return
the average of the element values in the array as type
double
- getMin: Find and return the
minimum element value in the array as type long
- getMax: Find and return the
maximum element value in the array as type long