Question: Find the source code with additional comments for functions to be added. You will need to add code in the main function to test these

 Find the source code with additional comments for functions to beadded. You will need to add code in the main function to

Find the source code with additional comments for functions to be added. You will need to add code in the main function to test these functions as well. C++ Language. Thank you and extra good vote to someone who can help me out!

#include #include namespace std int MAX_ROW 5; int MAX-COL = 5; //function prototype (declaration) PrintMatrix(int mat[][MAX_COL], row int col); //write a function to //1: randomly generate the row in the range [1..MAX ROW] //2: randomly generate the col in the range [1..MAX COL] //3: randomly generate row col values for the matrix FillRandom(int mat[ ][MAX_COL], int&row, int& col); //write a function to //print the matrix from the bottom row to the top row 17 PrintBottomUp (int mat[]J[MAX_COL], int row int col); 20 21 //write a function to //print the diagonal of the matrix if it is square matrix //if it is not a square matrix, print an appropriate message PrintDiagonal(int mat[][MAX_COL], int int col); 24 25 row //write a function to //return the average of all of the numbers in that matrix 27 28 GetAverage(int mat[ ] [MAX_COL], int int col); row main ()f 31 int int int row 3; col-4 mat1(MAX-ROW] [MAX-COL] { {10,20 , 30, 40), = 190,80,78,60 1123,43,56,76 ; 35

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!