Question: C++ Create a two-dimensional integer array in main that is 4x5. Write an input function that is passed this array. It then asks the user

C++ Create a two-dimensional integer array in main that is 4x5. Write an input function that is passed this array. It then asks the user for 20 numbers and fills the array with them. These numbers should be between 0 and 20 and be validated; use a separate function to input them and validate them. Create a one-dimensional integer array in main of size 4. Write a summing function that is passed both arrays. For each row in the first array, it places the sum of that row in the appropriate location in the second array. The two-dimension array should be passed safely, so that this summing function cannot change it. Write a display function is passed both arrays and outputs them. For each row in the two-dimension array, it should list the elements; then it should show the sum of those values (from the second array), then it should show the average of all values. Both arrays should be passes safely so that they cannot be changed in this function. All functions should be declared in a header and defined in a separate source file. The header should also include the constants for ROW and COL.

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!