The following is for C++
I’m in need of help with 2d arrays. So far I am able to printout the array just fine (they are random every time you run it) butI have trouble with the following:
- getAverage. This function should find the average of the wholearray.
- getTotal. This function should find the total of the wholearray
- getRowTotal. This function should find the total for eachrow
- getColumnTotal. This function should find the total for eachcolumn
- getHighestInRow. This function should find the highest value ineach row
- getLowestInRow. This function should find the lowest value ineach row
Here’s my code so far:
#include
#include
#include
#include
using namespace std;
const int rows = 3;
const int
OR
OR