Question: In C++ Write a program that creates a 5 by 5, two-dimensional array that store 25 integers and the program will call five functions. Function

In C++

Write a program that creates a 5 by 5, two-dimensional array that store 25 integers and the program will call five functions.

Function display(): the program will display all the integers (in the 5 by 5 format)

Function calculateTotal(): the program will return the total of the 25 integers

Function totalRow(): returns and displays a 5-element array with each of the element showing the total of all the elements of the same row in the 5 by 5 array.

Function totalColumn(): returns and displays a 5-element array with each of the element showing the total of all the elements of the same column in the 5 by 5 array

Function maximum(): returns the largest value in the 5 by 5 array

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!