Name: ________________________________ Section: _________________
Honor Code Acknowledgment: ___________________
Due: September 28
ColumnSum whose header is given below. The
function returns the sum of the values in column col
of two-dimensional
matrix mat .
int ColumnSum(const Matrix < int > & mat, int col)
// precondition: 0 <= col < mat.Cols(),
// postcondition: returns sum of all values in column col of mat
{
}
MaxValue that returns the largest value stored
in the matrix a .
int MaxValue(const Matrix < int > & a)
// precondition: a contains a.Rows() rows and a.Cols() columns
// postcondition: returns the largest of the values stored in a