# Write a complete C++ program that does the following:1. Create a 2-dimensional array with 8 rows and 6 columns. Fill the array withrandom 3 digit integers.2. Create a function called findLargestSum which returns the sum of the row with thelargest sum.ex. int array = {{3, 6, 8}, // sum = 17{2, 4, 5}, // sum = 11{1, 0, 9}}; // sum = 10If the findLargestSum function was called using this array, it would return 17.Note that the number of columns is required when passing a 2d array to a functionint findLargestSum(int array[], int rows, int columns);

Question

Write a complete C++ program that does the following:
1. Create a 2-dimensional array with 8 rows and 6 columns. Fill the array with
random 3 digit integers.
2. Create a function called findLargestSum which returns the sum of the row with the
largest sum.
ex. int array = {{3, 6, 8}, // sum = 17
{2, 4, 5}, // sum = 11
{1, 0, 9}}; // sum = 10
If the findLargestSum function was called using this array, it would return 17.
Note that the number of columns is required when passing a 2d array to a function
int findLargestSum(int array[], int rows, int columns);

### Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!* 