Given an arry of 100 random numbers in the range 1...999, write a function for each of the following processes. In building this array, if the random number is evenly div3ed by 3 or 7, store it as a negitive. (1) Print the array ten values to a line(aligned) (2) Print the odd values, ten to a line. (3) Print the values at the odd numbered index locations, ten to a line. (4) Return the num of all values in the array (5) Return the count of the number of even values (6) Return the locations of the smallest value in the array (7) return the locations of the largest value in the array (8) copy all positive values to a new array. Then use process "1" above to print the new array. (9) copy all negitive values to a new array. Then use a process "1" above to print the new array. Use a switch statement at the beginning to ask the user for a selection for which function they wish to run. ***NO POINTERS IN THE PROJECT***
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
I need this project to be complied in the Unix environment using the cc complier.