[solved]-Task 1 Write Function Splitarray Takes Two Integer Arrays Arrayl Array Equal Size Integer Q39060844
please write me a program .. its a “ C “ compiler .
Task # 1: Write a function splitArray that takes two integer arrays arrayl and array of equal size and an integer value splitValue. The function returns in array2 all elements of array that are greater than splitValue, if any, together with the number of these elements. Write a main function that: • Prompts for and reads the size of the two arrays (Assume a valid size) • Prompts for and reads N integer values in array • Prompts for and reads the splitValue Calls the splitArray function • Displays array2 that is returned by the function splitArray as shown in the sample program runs below. Note: Your program must be general. The spliArray function must not contain any scanf or printf calls. You must use meaningfull variable names and proper indentation. Enter array size! 4 Enter value of array1[@]: 5 Enter value of array1(1): 9 Enter value of array112]: 6 Enter value of array1(3]: 10 Enter split value: 2 array2 is: 5, 9, 6, 10 Sample program runs: Enter array size: 7 Enter value of array1[@]: 4 Enter value of array1[1] Enter value of array1[2] : Enter value of array1[3]: 12 Enter value of array(4) Enter value of array1(5): Enter value of array1[6]: -4 Enter split value: 5 array2 is: 7, 12, 8 Enter array size: 3 Enter value of array1[@]: 12 Enter value of array1[1]: 5 Enter value of array1[2] : 14 Enter split value: 15 There is no value greater than 15 in array1 Enter array size: 5 Enter value of array1[e]: 1 Enter value of array1[1]: -2 Enter value of array1[2]: 8 Enter value of array1(3): 4 Enter value of array1(4): 7 Enter split value: 7 array2 is: 8 Show transcribed image text Task # 1: Write a function splitArray that takes two integer arrays arrayl and array of equal size and an integer value splitValue. The function returns in array2 all elements of array that are greater than splitValue, if any, together with the number of these elements. Write a main function that: • Prompts for and reads the size of the two arrays (Assume a valid size) • Prompts for and reads N integer values in array • Prompts for and reads the splitValue Calls the splitArray function • Displays array2 that is returned by the function splitArray as shown in the sample program runs below. Note: Your program must be general. The spliArray function must not contain any scanf or printf calls. You must use meaningfull variable names and proper indentation. Enter array size! 4 Enter value of array1[@]: 5 Enter value of array1(1): 9 Enter value of array112]: 6 Enter value of array1(3]: 10 Enter split value: 2 array2 is: 5, 9, 6, 10 Sample program runs: Enter array size: 7 Enter value of array1[@]: 4 Enter value of array1[1] Enter value of array1[2] : Enter value of array1[3]: 12 Enter value of array(4) Enter value of array1(5): Enter value of array1[6]: -4 Enter split value: 5 array2 is: 7, 12, 8 Enter array size: 3 Enter value of array1[@]: 12 Enter value of array1[1]: 5 Enter value of array1[2] : 14 Enter split value: 15 There is no value greater than 15 in array1 Enter array size: 5 Enter value of array1[e]: 1 Enter value of array1[1]: -2 Enter value of array1[2]: 8 Enter value of array1(3): 4 Enter value of array1(4): 7 Enter split value: 7 array2 is: 8
Expert Answer
Answer to Task # 1: Write a function splitArray that takes two integer arrays arrayl and array of equal size and an integer value … . . .
OR

