188 Introduction to Computational Modeling
purity of the water is adequate for human consumption. Assume that when the water
has less than 0.6 parts per gallon of impurities, it is adequate for human consumption.
In this problem, the data given is the contents of impurities in parts per gallon of
water. The initial data is 405 parts per gallon of impurities and the growth factor is
0.35.
The C program shown below declares the data lists (arrays) of the sequence s
with the data of the contents of impurities in parts per gallon of water The output
data produced by executing the program and GnuPlot is used to plot the graphs. The
program is stored in file: watertr.c. When the program executes, the following
output listing is produced.
Program to compute ...