Home Segments Index Top Previous Next

356: Practice

Define closing_djia, patterned on the mean_djia function defined in Segment 352. The closing_djia function is to find the closing Dow–Jones Industrial Average for a certain day in an array named djia, as described in Segment 282.

Then, write a program to compute the average of the closing Dow–Jones Industrial Averages.