CS233 Assignment #5
This assignment is to be done individually and is worth a total of 3% of
the final mark.
1. List the indexes of score[2][3][1][2]. [5 marks]
2. Obtain the row-major mapping function for a five-dimensional array?
Assume that the array has the dimensions, u1, u2, u3, u4 and u5 [5 marks]
3. Chapter 7, Exercise 14 [10 marks]
4. Chapter 7, Exercise 18 (a) & (b) [10 marks]
Note that you need to show your work (i.e., not just the answer) for exercises
that do not require C++ coding in order to receive full marks. For the
exercises that require C++ coding, you must test your code and hand in the
proof that it works correctly.
Have fun!