Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7 7 7 Write a C function named SplitAndSummarize that recelves three different (2D) two dimensional arrays all of type Integer. The received arrays are

image text in transcribed
image text in transcribed
image text in transcribed
7 7 7 Write a C function named SplitAndSummarize that recelves 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 Band the right side half will be stored in C. The extra column for B and for C will include the maximum of the values in the corresponding rows for B and C respectively. See Below Example: Array B will be 7 7 4 10 9 10 Assume this is the input arrayA 4 10 9 4 2264 55 1 1 5 5 1 7 1 3 5 276 24 2 3 2 6 76 85 76 9 8 9 769 8 9 5 7 4 5 4 3 7 2 3 3 7 2 3 4 1 3 3 1 7 4 9 7 7 9 71 3 6 2 1 6 5 10 8 8 10 6 5 10 8 8 6 1 5 4 8 6 5 10 9 10 10 9 10 1 2 2 3 1 9 5 4 49 4 6 1 3 4 74 47 7 1 2 3 4 5 And Array C will be 4 2 2 6 4 6 35 27 67 68 57 4547 24 2 3 2 3 NeoNa99 3 74 9 7 6 5 -10 95 4 4 9 6 6 9 4 6 7 58 4 1 331 4 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 50 (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 13 12 30 30 14 6 25 38 33 37 28 28 41 19 18 23 24 22 42 26 35 46 33 9 27 11 27 16 10 30 9 20 31 28 46 36 27 31 18 38 24 6 10 35 13 14 33 20 35 7 37 15 39 40 37 50 22 27 23 37 13 24 18 36 7 12 43 25 16 21 13 21 47 32 47 30 14 8 35 15 1 4 2 5 50 27 37 45 40 27 29 19 34 13 12 30 30 14 6 25 36 33 37 28 19 3 24 27 26 46 9 11 28 16 41 10 18 30 23 9 22 20 42 31 35 28 33 46 27 29 27 19 14 33 20 35 2 37 15 39 40 44 41 33 30 35 42 37 46 39 40 16 43 50 28 41 18 23 37 41 13 27 24 7 25 22 34 13 12 30 30 14 6 25 38 33 37 28 19 3 24 27 26 46 9 11 10 30 9 20 31 28 46 29 19 36 27 31 18 38 24 6 18 35 13 14 33 20 35 7 37 15 39 40 42 35 33 27 27 21 22 37 36 43 21 32 8 1 50 40 49 13 47 35 4 27 23 18 12 16 47 14 44 5 45 30 15 2 37 44 37 28 19 34 13 12 30 30 14 6 25 3 24 27 26 46 9 11 28 41 18 23 22 42 35 33 27 27 16 10 30 9 20 31 28 46 29 19 33 20 35 7 37 15 39 40 33 30 35 42 37 46 39 40 38 33 22 41 25 16 36 37 43 27 31 13 24 18 44 7 38 49 24 13 21 47 30 18 35 15 35 2 13 27 37 50 22 50 23 41 18 36 36 12 43 44 21 49 47 32 47 14 8 47 1 5 50 50 45 45 e to search o

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

Question What is a secular trust?

Answered: 1 week ago