### Arrays. column values into rows

SO the program will read two different files and put the columns into rows.
somebody posted the entire question on chegg which might be easier.
 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899`` ``````#include #include #include #include #include #include #include #include using namespace std; const int MAX_COLUMNS = 5; //max number of columns int readFile(double values[][MAX_COLUMNS], int maxRows, string inputFileName); // prototypes double average(double values[][MAX_COLUMNS], int numberRows); // double columnAverage(double values[][MAX_COLUMNS], int column, int numberRows); double smallestValue(double values[][MAX_COLUMNS], int row); int main() { //start main function const int MAX_ROWS = 20; //max number of rows string inputFileName; //input file to be read cin >> inputFileName; double grades[MAX_ROWS][MAX_COLUMNS]; int actualRows = readFile(grades, MAX_ROWS, inputFileName); //if file has errors prints out error message if (actualRows == -1) { cout << "File \"" << inputFileName << "\" could not be opened" << endl; } else if (actualRows == 0) { //if rows are zero prints error cout << "The input file \"" << inputFileName << "\" did not contain any data" << endl; } else { cout << "Processing " << actualRows << " rows, and " << MAX_COLUMNS << " columns" << endl; double ave = average(grades, actualRows); printf("Average for all values is %.2f\n", ave); // prints average for all values for (int i = 0; i begin(ss), end; std::vector arrayTokens(begin, end); for (int i = 0; i