i need a c++ code for this
Write a program that creates a two-dimensional array initializedwith test data. Use any data type you wish. The program should havethe following functions:
- getTotal – This function should accept atwo-dimensional array as is argument and return the total of allthe values in the array.
- getAverage – This function should accept atwo-dimensional array as its argument and return the average of allthe values in the array.
- getRowTotal – This function should accept atwo-dimensional array as its first argument and an integer as itssecond argument. The second argument should be the subscript of aro in the array. The function
OROR