Question: the program on C language Introduction to Programming - C Help please Problem 2. Separate Data 20 pts Write a function called SeparateData. The function
the program on C language
Introduction to Programming - C
Help please

Problem 2. Separate Data 20 pts Write a function called SeparateData. The function receives one array of integers and it returns back nothing The function analyzes the given array and finds the following information: 1. How many positive numbers 2. How many negative numbers 3. How many odd numbers 4. How many even numbers After that, the function defines 4 integer arrays. the first one has a size that is equal to the result of step 1 above. The second array has a size that is equal to the result of step 2 above. The third array has a size that is equal to the result of step 3 above. The fourth array has a size that is equal to the result of step 4 above Now go back to the original array, go over their data one by one and then copy each element to the proper array (the four array you just defined). The element can be moved into two arrays, for example, if the element is 24, then it should be copied into the positive and the even array At the end of the function print the four arrays with a proper message before printing every array to indicate what are the following numbers Calling the function Inside the main function, define an array of size 15, then let the user input its values. After that call the function SeparateData and pass to it the array you defined
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
