Hello! So I have to make a program in c++ that returns the average of all the numbers in a 2d array, and it gets one case right. When the dimensions are 1 and 1, it returns 7 when the seed is 75. But any other case outputs a correct number. Is the seed statement wrong?
So 7 is the only correct output that it gets out of the five tests, and that's when you do
getArrayAverage(ary, 1, 1) and seed = 75. But if you call getArrayAverage(ary, 7, 9) when the seed is 55, it outputs 0.761905 when it should output 4.77778.