Finds PNUM largest entries above diagonal, stores value, row and column in PNUM x 3 matrix from least to greatest

What will be an ideal response?


```
void Matrix :: findPnum (int big[PNUM][3])
{
int i, j, k;

for (i = 0; i < PNUM; ++i){
big[i][0] = 0; // initialize matrix to 0
big[i][1] = 0;
big[i][2] = 0;
}

for (i = 0; i < rows; ++i)
for (j = i + 1; j < cols; ++j)
if (mat[i][j] > big[0][0]){
// adjust list down to make room
for (k=0; (mat[i][j] >= big[k][0]); ++k){
big[k][0] = big[k+1][0];
big[k][1] = big[k+1][1];
big[k][2] = big[k+1][2];
}
// insert into space
big[--k][0] = mat[i][j];
big[k][1] = i;
big[k][2] = j;
}
}

```

Computer Science & Information Technology

You might also like to view...

Can data flow from a client to a server? Explain.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is NOT true about adding pictures to a form?

A) When a picture is added to a form, then the same picture will appear for every record in the table. B) A different picture can be added for each record. C) A picture can be inserted in the header, footer, or the Detail area of the form where the record values are shown. D) Pictures can be added to forms to make them more appealing.

Computer Science & Information Technology

When customizing the ribbon, to expand the view to display the groups within a tab, click the minus icon

Indicate whether the statement is true or false

Computer Science & Information Technology

?When you complete your work with Office Mix, __________. 

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology