Question: 2. Using C++! 1. Define a numeric two-dimensional array where you print the sum of all rows and the columns. Store this result inside two

2. Using C++!

1. Define a numeric two-dimensional array where you print the sum of all rows and the columns. Store this result inside two arrays in one dimension. Ask the user for the dimension. Exit: Enter array dimension: 3, 4 Enter the array values: A[0][0] = 3 A[0][1] = 6 Given the array: 3 6 8 9 2 0 4 2 6 1 7 1 The sum of the columns is: 11 7 19 12 The sum of the rows is: 26 8 15 Implement the following functions in your code: a. getDimension: Function with two input parameters of the integer type, the rows and the columns that returns the array dimension. b. getValues: Function with three input parameters the two-dimensional array and the rows and the columns, the function requests the values from the user and returns them through the array. The function does not return values. c. getRowsSum: Function consists of 4 input parameters, the two-dimensional array, the number of rows, the number of columns, and the two-dimensional array where stores the sum of the rows of the two-dimensional array. The function does not return any value. d. displayRowsSum: Function consists of two input parameters, the name of the array in one dimension and dimension . The function prints the sums of each row of the array two-dimensional The function does not return any value. e. getColsSum: Function consists of 4 input parameters, the two-dimensional array, the number of rows, number of columns, and the two-dimensional array where it stores the sum of the columns of the two-dimensional array. The function does not return any value. F. displayColsSum: Function consists of two input parameters, the name of the array in one dimension and the dimension. The function prints the sums of each column of the two-dimensional array. The function does not return any value. g. Implement a main program that calls your functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!