Question: write the code in C language 1. Write a function named SplitAndSummarize that receives three different (2D) two dimensional arrays all of type integer. The


1. Write a function named SplitAndSummarize that receives three different (2D) two dimensional arrays all of type integer. The received arrays are of the following sizes: The first array A will contain data of size 10 x 10 The second and third arrays (B and C) have the same size which is 6 X 10. Your function is supposed to split the array A into two halves, the upper half will be stored in B and the lower half will be stored in C. The extra row for B and for C will include the maximum of the values in the corresponding columns for B and Crespectively. See Below Example: Assume this is the input way 87 4 4 10 97 | 10 8 64 108 1 7 66 9576 9 9 8 2 3 6 16 7 685 8 6 9 8 65 7 4 54 97 2 3 56 9739 84 9 7 71 9 629 6 5 10 8 8 6 1548 6 5 10 9 | 10 | 1 2 231 95 4 4 61 3 474 4 9 6 4 71 23 3 4 5 2. Write the main function that Defines a 2D array of size 10 X 10 named X Defines another two 2D arrays of size 6 X 10 named Y and Z respectively Initializes the elements of the variable X with random Integers between 1 and 60 (inclusive) Properly calles the function SplitAndSummarize defined in part1 Properly print the elements of the three arrays in a tabular format as in the sample run Sample Run 34 37 28 16 44 36 37 49 50 22 13 28 4 10 14 29 41 29 29 39 12 15 18 90 39 31 19 24 le 36 303 239 20 12 43 30 24 20 35 30 21 14 22 42 al 7 24 13 43 6 26 35 36 37 47 30 14 2546 33 15 35 15 389 27 39 4 2 50 1 BT S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
