Figure 1

SAMPLE INPUT AND OUTPUT VALUES:

For a file containing the following input values:

-100 -50 0 49 99

The output file contains the following values:

99 49 0 -50 -100

and the screen output while the program is running is:

Array contents:
99 49 0 -50 -100
Avg 3 middle values = -0.333333

Figure 1