Question: In c++. 8 Part 1 (EECS 168/169) Array Helper Functions Below is a list of functions, their parameters, and what they do void print2DArray(int* array,

 In c++. 8 Part 1 (EECS 168/169) Array Helper Functions Below

is a list of functions, their parameters, and what they do void

print2DArray(int* array, int rows, int cols) . Takes in a 2D array

In c++.

8 Part 1 (EECS 168/169) Array Helper Functions Below is a list of functions, their parameters, and what they do void print2DArray(int* array, int rows, int cols) . Takes in a 2D array and prints it The array is unchanged int arraySum(int array, int size) . double arrayAvglint* array, int size) . int arraySum2D(int** array, int rows, int cols) . double arrayAvg2D(int** array, int rows, int cols) . int arrayMax2D(int* array, int rows, int cols) See sample run for formatting . Takes in a 1D array and returns the sum of all values . Takes in a 1D array and returns the average of all values . Takes in a 2D array and returns the sum of all values . Takes in a 2D array and returns the average of all values Takes in a 2D array and returns the largest value in the entire array . int** arrayFromFile(std::string fileName, int& numRows, int& numCols) . Creates a 2D array based on the specifications in the file Sets the ints passed by reference to the dimensions of the array . Returns a pointer to the 2D array . Assumes the following file format: Example file for an array with 2 rows 3 columns: 2 3 9 4 10 7 2 7964 Note: so be written as int. arti, also int. arr could be written as int amt, There is a slight difference. but either are acceptable for this program. . int main) Call your other function to handle as much of the work as possible! For example, use main.cp

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!