Pointers & Arrays

i am a total beginner.. plz help with question....
5. Write a short program to sort an array of numbers
a. Create an integer array of 10 numbers
b. Preload the values into the array when you define the array
c. Use the sequence 107,1,5,6,8,12,15,3,22,17
i. For example int my_int_array [10]=[ 107,1,5,6,8,12,15,3,22,17];
d. Write a program to sort the numbers lowest to highest
i. You should use procedures
e. Suggested routes are:
i. Sort the array directly
ii. Create another array and copy the numbers into it as you sort them
iii. Use an array of integer pointers to provide the sorted sequence
f. Use a procedure to output the “sorted” array to the screen
i. This will require passing the array or the array pointer into the program and the size of the array in some manner
g. Write a procedure to calculate the mean value of the sequence and write this value out to the screen.
Clearly this is a homework question. Show the effort you've made to answer the question and then we can help you with specific parts.
Topic archived. No new replies allowed.