header

Homework 19

Modify Homework 16 so that the daily highs and lows are stored in a two-dimensional array of integers. One column should be used to store the daily lows and a second column used to store the daily highs. You'll need to modify your value-returning functions since you will be passing each function a two-dimensional array instead of a one-dimensional array. In particular, add another integer parameter that specifies which column is supposed to be processed. In the function invocation, use the appropriate column number as the actual parameter. For example, if the function is to process the daily lows, the actual column parameter would be 0 and if the function is to process the daily highs, the actual column parameter would be 1.