Given an array of 100 random numbers in the range 1 to 999, write a function for each of the following processes. In building the array, if the random number is evenly divided by 3 or 7, store it as a negative number.
a. Print the array ten values to a line. Make sure that the values are aligned in rows.
b. Print the odd values, ten to a line.
c. Print the values at the odd numbered index locations, ten to a line.
d. Return a count of the number of even values.
e. Return the sum of all values in the array
f. Return the location of the smallest value in the array.
g. Return the location of the larges value in the array.
h. Copy all positive values to a new array. Then use process "a" above to print the new array.
i. Copy all negative values to a new array. Then use process "a" above to print the new array.
Note: Use the fillArray function prototype and PrintAll template. void fillArray (int ary[], int size, int lowLimit, int highLimit); void printAll (int ary[], int size); You must create function prototype with the given function names listed below.
• printOdd
• printOddIdx
• evens
• sum
• smallest
• largest
• getPositives
• getNegatives