using c++ 1. Create Two 2D arrays ( Array_1 , Array_2). Each array is of size 3X3. 2. Write a function to populate both arrays
using c++
1. Create Two 2D arrays ( Array_1 , Array_2). Each array is of size 3X3.
2. Write a function to populate both arrays with distinct random numbers that are between 1-12.
3. Write a function to display both arrays.
4. Write a fucntion to add Array_1 by Array_2 and place the results in Array_3. Display Array_3
5. Write a function to multiply Array_1 by Array_2 and then place the results in Array_3. Display Array_3.
6.Write a function that calculates and Displays the transposed of Array_1 without modifying the original values of Array_1.
7. Write a function that calculates and displays the determinant of Array_1.
8. Write a function that calculates and displays the sum of the elements of each row in Array_1.
9. Write a function that calculates and displays the sum of the elements of each column in Array_1.
10.Write a function that calculates and displays the sum of both diagonal columns in Array_1.
11. Write a function to determine whether Array_1 is a special array. special array is an arrangment of distinct numbers in any grid where the nimbers in each row and in each column and the numbers in the main and secondary diagnols all add up to the same number. in this case the number is 15.
- formula for special number (n (n^2+1))/2
12. Repeat steps 2-11 untill user terminates the program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started