Compute and display an average value
Listing 5 computes and displays the average value of the three middle values that were read from the file and stored in the array.
This code is straightforward.
The only reason that I included this code in this lesson is because the ACC Master Syllabus for this course states that the course is to include the topic "Using only part of an array."
This code uses only part of the array.