Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a program that uses \"for loops\" that inputs a 2 dimensional square array

ID: 1853105 • Letter: W

Question

write a program that uses "for loops" that inputs a 2 dimensional square array of [50][50] rows and columns. then the program will copy only the diagonal elements from upper left corner to the lower right corner to a 1D dimensional array using a function.

the program should also calculate the average of the diagonal elements. Display the given matrix, calculated single array, and the average of the diagonal elements then

write a program using arrays that will inpuyt 20 real numbers then display Those 20 numbers BACKWARD on the screen

Explanation / Answer

void reverse(b[]) { for(int i=0;i>b[i]; for(i=19;i>=0;i++) cout