Question: Using C++ Visual Studio - include comment if possible Write a complete program that will have a main function and a function called average. (Ref:

Using C++ Visual Studio - include comment if possible
Write a complete program that will have a main function and a function called average. (Ref: slides 68 and 69 of lecW9_arrays, slides 47 to 49 of lecW6 func) 1) Function average will only have a 2D integer array parameter with 2 rows and 3 columns. This function will return the average of the elements stored in 2D array. Use nested counter-controlled for loop. (Use array template instead of built-in array) a. b. In main), declare a 2D integer array template called t with 2 rows and 3 columns. c. In main0. initialize the array using initializer list such that: First row will have values 1, 2, 3 (from left to right) . Second row will have values 6, 8, 0 (from left to right) Call the function average from main such that it will return the average of the elements stored in array t. d. e. in main) store the value returned from the function average in a variable Them print that variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
