Question: Create a C + + program enabling users to input a two - dimensional array. Subsequently, initialize the array by the user ( inside the

Create a C++ program enabling users to input a two-dimensional array. Subsequently, initialize the array by the user (inside the main Function) then implement three functions the call all of them inside the main function.
1. Print_Function : Print the largest element and the index of the largest element along with its corresponding value in the array.
2. Average: Print the average of the entered array.
3. Print_Diagonal:Print the diagonal elements of the array only.
Important notes:
All Functions should be written bellow the main.
The dimension of the array (row, column) should be initialized during the run time.

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!