Question: Create a3x3matrix of int values. Implement four functions, each expecting the matrix as parameter input. The first function must use a nested loop to prompt

Create a3x3matrix of int values. Implement four functions, each expecting the matrix as parameter input. The first function must use a nested loop to prompt a user to enter each value. Show the indices when prompting for input and populate the matrix with these values. The second functionoutputsthe matrix and formatsthe output to align all columns and rows to accommodate values up to 1000.The third function finds and returns the minimum value in the matrix. The fourth function finds and returns the maximum value in the matrix. Call each function from the main and output the minimum and maximum values returned by the third and fourth function respectively.

NOTE: PLEASE READ INSTRUCTIONS CAREFULLY BECAUSE IT NEEDS TO USE 4 FUNCTIONS.

i did the input part but i dont know how to get the matrix.

#include

using namespace std;

const int COLUMNS = 3;

void printMatrix1(int matrix[][COLUMNS], const int ROWS);

int main()

{

const int ROWS = 3;

const int COLUMNS = 3;

int matrix[3][3];

cout << "Input: " << endl;

printMatrix1(matrix, ROWS);

return 0;

}

void printMatrix1(int matrix[][COLUMNS], const int ROWS)

{

for (int row = 0; row < ROWS; row++)

{

for (int col = 0; col < COLUMNS; col++)

{

cout << "Value at " << row << "," << col << ": ";

cin >> matrix[row][col];

}

}

}

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!