I am trying to fiqure out this problem for a long time. I am teaching myself C++ from C++ for Dummies and I cant figure this out.

Fill in a 2 dimension 3x3 array with odd numbers. The display shows the array as it is being filled. Use random integers to fill the array. Use numbers between 1 and 10. Initialize array to zero. Find the sum of matrix. Find the maximum number in the matrix and the number of times it occurred. Can anyone show me a code that does this?