So far, ali algorithms in this chapter have manipulated one-dimensional arrays that is only one subscript is needed to locate an element in an array. In some business applications there is a need for multidimensional arrays where two or more subscripts are required to locate an element in an array The following freight charges array is an example of a two-dimensional array. and is an extension of Example 7.9 above. It is a two-dimensional array because the calculation of the freight charges to sbip an article de pends on two values: the shipping weight of the article. and the geographical area or zone to which it is to be shipped. namely zones 1. 2. 3 or 4.
The range of shipping weights in grams, is provided in the same one dimensional array as in Example 7.9. as follows.