Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve using #c 1. Write a C function named SplitAndSummarize that receives three different (2D) two dimensional arrays all of type integer. The received arrays
solve using #c
1. Write a C 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 10 X 6. Your function is supposed to split the array A into two halves, the left side half will be stored in B and the right side half will be stored in C. The extra column for Band for C will include the minimum of the values in the corresponding rows for Band C respectively. See Below Example: 9 Assume this is the input arrayA 7 7 4 10 9 4 8 8 6 4 55 1 7 1 3 5 276 24 2 3 2 6 7685 76 98 9 5 7 9 54 37 2 3 3 1938 749 7 7 9 3 6 98 6 5 10 8 8 6 10 5 48 6 5 10 9 10 10 6 9 3 8 95 4 6 10 6678 49 6 4. 7 8 8897 Array B will be 7 7 4 10 9 4 5 5 1 7 11 2 4 2 3 22 76 8 96 37 2. 3 32 749 7 74 6 5 10 8 8 5 5 10 910 5 95 4 4 64 49 6 4 74 4 6 6 4 4 And Array C will be 6 8 8 4 6 5 And Array C will be 8 8 6 44 3 5 2 7 6 2 7 6 8 5 5 7 9 5 4 4 1 9 3 8 1 3 6 9 8 3 6 10 5 4 8 4 6 9 3 8 3 6 6 7 8 6 8 8 8 9 7 7 4 9 10 10 2. Write the main function that Defines a 2D array of size 10 x 10 named X Defines another two 2D arrays of size 10 X 6 named Y and Z respectively Initializes the elements of the variable X with random integers between 1 and 10 (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 B i 10 - 6 W MN 10 3 3 OD + 01 10 ON NG O T 5 6 3 6 000 NA 1 7 10 3 ? 8 110 0 0 0 w 10 3 + 01 30 N N 0000 o 0101 0 0 0 + OT OD 5 4 1 OoStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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