double getHighest ( double st [s][t]) { double highest = 0; for (int student = 0; student < s; student ++) { for (int test = 0; test < t; test ++) { if (st [student] [test] > highest) { highest = st [student] [test]; } } } return highest; }

However, when it comes to finding the largest number in a column and/or row, I am confused.

I tried looking it up and doing little things like this:

double highest; for ( int test = 0; test < t ; test ++) { highest = 0; for ( int student = 0 ; student < s ; student ++) { if ( st [test] > 0 ) { highest = st [test] ; } } cout << "The highest grade from test " << test + 1 << " is a " << highest << "%. \n";

But I still cannot pinpoint it. Any help or guide is appreciated.