Question: This is done in Eclipse IDE as a c file 2. Write a program to calculate the sum of column i of two 2-dimensional arrays

 This is done in Eclipse IDE as a c file 2.

This is done in Eclipse IDE as a c file

2. Write a program to calculate the sum of column i of two 2-dimensional arrays (A and B). Fill array A as follow: 323 3 258 Define array B[3][3], and read its elements from the user. For example, if the user enters B as: 231 5 6 3 10 Example Output The sum of column 1 in A and B = 3+1+2+2+5+9 = 22 The sum of column 2 in A and B = 2+3+5+3+6+8 = 27 The sum of column 3 in A and B = 3+5+8+1+3+0 = 20 3. Write a program to define a 2-dimensional variable size array A[size][size], ask the user to enter the size of the array and its elements. Then split the 2-dimensional array into two 1-dimensional arrays (P and N). P contains the positive numbers in A and N contains the negative numbers in A. Print both P and N. Example Output Enter the size of array A: 4 Enter the elements of array A: - 2 -3 4 6 -7 -6 0 11 9 7 -22 10 -4 8 13 2 Array P: 2 4 6 0 11 9 7 10 8 13 2 Array N: -3 -7 -6 -22 -4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!