Assignment #3 - 92A

# Assignment #3 - 92A

```Assignment 3                                         Weight 30
============                                         Due 10 Feb 92
E-Mail to HQAC

When a plot is made from experimental data, sometimes the data
points are so scattered that it is difficult to select a 'best
representive line' for the plot. In this case, the data can be adjusted
to reduce the scatter by using a 'moving average' mathematical method
of finding the average of three points in succession and replacing the
middle value with this average.

Write a FORTRAN program to read an array y of 20 real values.
Build an array z of 20 values where z is the array of adjusted values.
That is, z[2] is the average of y[1], y[2], and y[3]; z[3] is the
average of y[2], y[3], and y[4]; and so on. Notice that the first and
last values of y cannot be adjusted and should be moved to z without
being changed. Do not detroy the original values in y. Print the
original and the adjusted values next to each other in a table.

Data to be used - extract it from this file:
0.2
1.3
1.4
2.0
2.6
1.8
1.9
0.8
1.0
0.0
0.3
0.9
1.3
1.4
1.2
1.5
0.9
1.2
0.7
0.3
```