[Solved]Need C Code Write Program Creates Two Dimensional Array Initialized Test Data Use Data Typ Q37057657
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 should return the total of the valuesin the specified row.
- getColumnTotal—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 acolumn in the array. The function should return the total of thevales in the specified column.
- getHighestInRow – This function should accept atwo-dimensional array as its first argument and an integer as itssecond argument. The second argument should dbe the subscript of arow in the array. The function should return the highest value inthe specified row of th array.
- getLowestInRow – This function should accept a two-dimensional array as its first argument and an integer as itssecond argument. The second argument should be the subscript of arow in the array. The function should return the lowest value inthe specified row of the array.
Demonstrate each of the functions in this program.
Expert Answer
Answer to i need a c++ code for this Write a program that creates a two-dimensional array initialized with test data. Use any data… . . .
OR

