does anyone know the answer to this problems, it's giving me a headache>> Given an array of 100 random numbers in the range 1……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 largest 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.