Question: C++ please that's all I can give you .. Write a function minProd that takes two parameters; a 2D integer array with 10 columns, and
C++ please


Write a function minProd that takes two parameters; a 2D integer array with 10 columns, and the number of rows. The function must return the product of the minimum values from each row. Function specifications: The function name: minProd The function parameters (in this order): A 2D integer array with 10 columns The number of rows, int O O . The function returns the product of the minimum values from each row as an integer Sample run 1 9 Given matrix: 9 2 2 3 5 7 6 8 3 9 0 2 returned value: 0 7 6 3 10 8 6 3 Explanation: 2 (the lowest value in the 1st row) x 0 (the lowest value in the 2nd row ) = 0. Sample run 2 Given matrix: 5 2 8 - 8 9 9 8 -5 4 1 8 0 10 7 6 1 11 2 -3 8 7 10 0 3 returned value: -120 -1 -5 8 -5 9 11 Explanation: -8 (the lowest value in the 1st row) x-5 (the lowest value in the 2nd row ) X-3 (the lowest value in the 3rd row ) = -120. Write a function minProd that takes two parameters; a 2D integer array with 10 columns, and the number of rows. The function must return the product of the minimum value from each row. Function specifications: The function name: minProd The function parameters (in this order): A 2D integer array with 10 columns The number of rows, int The function returns the product of the minimum value in each row as an integer For example: Result returned value: 1 Test int arr (2][10] = { (1, 2, 3, 4, 5, 10, 9, 8, 7, 6), (5, 1, 1, 1, 1, 1, 1, 1, 1, 1), ); cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
