Question: Question (70): Write a program that takes a matrix of size N x N of positive integers as input and returns: The largest number The

 Question (70): Write a program that takes a matrix of size

Question (70): Write a program that takes a matrix of size N x N of positive integers as input and returns: The largest number The smallest number The median The average The sum Use the exception handling to throw an exception in case the user enters a negative number as the input. A message "please enter a positive number" is shown to the users until they enter a positive number. You also need to free the matrix allocated memory at the end of the program. Do not use C++ standard library. You must use pointers and pointer arithmetic to allocate and represent the matrix and to navigate through it

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 Programming Questions!