I need source code for a program that inputs an int from a user, then I need to allocate an array of doubles on the free store.

I then need to iterate across the array and display all of the values, then display the highest and lowest values, the total of the values, and the average of the values. I also have to release the free store when the prorgam is done...HELP!!!!