Your program will analyze up to 100 integers stored in an array. The data are contained in a text file. Your program must use input redirection to read the file.
Your program should start with a function to read the data file and fill the array. Note that the file size is unspecified: there may be fewer than 100 numbers, exactly 100 numbers, or more than 100 numbers in the input file. If there are fewer than 100 numbers in the file, the read function must return the index for the last element used in the array. If there are more than 100 integers in the file, the read function must return when the array reaches capacity.
In building the array, if the number is evenly divisible by 3 or 7, store it as a negative number.
Next, implement a function for each of the following:
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. Zero is an even number.
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.
j. Print the array using process (a) above.
k. Sort the array using the selection sort algorithm. Then use process (a) above to print the array.
Demonstrate each of the functions in the order shown above.
Notes: