2) Write three functions a. main function i. Declares a two dimensional array of
ID: 3629874 • Letter: 2
Question
2) Write three functionsa. main function
i. Declares a two dimensional array of ints 4 * 4
ii. Ask the user to enter a value for each of the elements of the array
iii. Call a function that displays the average for each of the rows
iv. Call another function that displays the average for each of the columns
b. row average
i. takes the two dimensional array
ii. figures out the average for each row
iii. displays the average
c. column average
i. takes the two dimensional array
ii. figures out the average for each column
iii. displays the average
Explanation / Answer
#include using namespace std; void rowaverage(int a[][4]) { double sum=0; for(int j=0; jRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.