Write a complete C++ program that will load a Two-Dimensional array A[7][7] with the first 49 numbers, then print the following : a.) the content of the original array b.) the content of the array with the elements of the ISt row and 7th row interchanged. c.) the content of the array with the elements of the 3rd col and 5th col interchanged. d.) the content of the array with the 2 diagonal elements interchanged. Create two 2-DimensionaI arrays. Copy the content of the ISt array to the 2nd Array, then manipulate its content for the output in (b.). Recopy again the content of the ISt array to the 2nd array, then, manipulate again the content of the 2nd array for the output in (c.) Do the same process for the output in (d.) Create a function named PrintArray for printing the content of the ISt array in (a) and the content of 2nd array after it had been manipulated to produce the required output in (b), (c.) and (d.)
Write a complete C++ program that will load a Two-Dimensional array A[7][7] with the first 49 numbers, then print the following : a.) the content of the original array b.) the content of the array with the elements of the ISt row and 7th row interchanged. c.) the content of the array with the elements of the 3rd col and 5th col interchanged. d.) the content of the array with the 2 diagonal elements interchanged. Create two 2-DimensionaI arrays. Copy the content of the ISt array to the 2nd Array, then manipulate its content for the output in (b.). Recopy again the content of the ISt array to the 2nd array, then, manipulate again the content of the 2nd array for the output in (c.) Do the same process for the output in (d.) Create a function named PrintArray for printing the content of the ISt array in (a) and the content of 2nd array after it had been manipulated to produce the required output in (b), (c.) and (d.)
Step by step
Solved in 2 steps