Question: HI PLEASE HELP AND PLEASE INSERT 10 COMMENTS , 5 SAMPLE RUNS AND EACH SAMPLE RUN SHOULD INCLUDE 2 SCREENSHOTS. PLEASE READ THE INSTRUCTIONS ABOVE

 HI PLEASE HELP AND PLEASE INSERT 10 COMMENTS , 5 SAMPLERUNS AND EACH SAMPLE RUN SHOULD INCLUDE 2 SCREENSHOTS. PLEASE READ THEINSTRUCTIONS ABOVE SO THAT IT IS CLEAR. FOR THE CODE IS IN

HI PLEASE HELP AND PLEASE INSERT 10 COMMENTS , 5 SAMPLE RUNS AND EACH SAMPLE RUN SHOULD INCLUDE 2 SCREENSHOTS. PLEASE READ THE INSTRUCTIONS ABOVE SO THAT IT IS CLEAR. FOR THE CODE IS IN BELOW. THANKS

#include

using namespace std;

const int COLS = 5;

int getTotal(int [][COLS], int);

double getAverage(int [][COLS], int);

int getRowTotal(int [][COLS], int);

int getColumnTotal(int [][COLS], int, int);

int getHighestInRow(int [][COLS], int);

int getLowestInRow(int [][COLS], int);

int main()

{

const int ROWS = 4;

int testArray[ROWS][COLS] =

{ { 1, 2, 3, 4, 5 },

{ 6, 7, 8, 9, 10 },

{ 11, 12, 13, 14, 15 },

{ 16, 17, 18, 19, 20 } };

cout

cout

cout

cout

cout

.

cout

system("PAUSE");

return 0;

}

int getTotal(int array[][COLS], int rows)

{

}

double getAverage(int array[][COLS], int rows)

{

}

int getRowTotal(int array[][COLS], int rowToTotal)

{

}

int getColumnTotal(int array[][COLS], int colToTotal, int rows)

{

}

int getHighestInRow(int array[][COLS], int rowToSearch)

{

}

int getLowestInRow(int array[][COLS], int rowToSearch)

{

}

COMMENTS (worth 7.5% of your programming assignment grade): Your program should have at least ten (10) different detailed comments explaining the different parts of your program. Each individual comment should be, at a minimum, a sentence explaining a particular part of your code. You should make each comment as detailed as necessary to fully explain your code. You should also number each of your comments (i.e., comment 1, comment 2, etc.). SAMPLE RUNS (worth 7.5% of your programming assignment grade): You should submit screenshots of at least five (5) different sample runs of your program. Each sample run needs to use a different 2D array, and your sample runs should NOT be the same as the sample runs that are used in this write-up for the assignment. You should also number each of your sample runs (i.e., sample run 1, sample run 2, etc.). Each of your sample runs should be similar to this format: Each of your five sample runs should contain two screenshots: 1) one screenshot of your code, showing the 2D array that was used to run the program and 2) one screenshot of the output on the console screen. Therefore, you should have a total 10 screenshots between your 5 sample runs. Write a program that creates a two-dimensional array (2D array) initialized with test data. The program should have the following functions: + getTotal. This function should accept a two-dimensional array as its argument and return the total of all the values in the array. + getAverage. This function should accept a two-dimensional array as its argument and return the average of all the values in the array. + getRowTotal . This function should accept a two-dimensional array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the total of the values in the specified row. + getColumnTotal. This function should accept a two-dimensional array as its first argument and an integer as its second argument. The second argument should be the subscript of a column in the array. The function should return the total of the values in the specified column. + getHighestinRow. This function should accept a two-dimensional array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the highest value in the specified row of the array. + getLowestInRow. This function should accept a two-dimensional array as its first argument and an integer as its second argument. The second argument should be the subscript of a row in the array. The function should return the lowest value in the specified row of the array. Demonstrate each of the functions in this program

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!