Im a beginner to C++. Its my first year in college. Im completely stuck at this. Can anyone post a program of how it would look for this problem? Here is a picture of the problem. If you guys could use the numbers "2, 6, and 9" That would be great. Thanks in advance guys!
I dunno how far into the course you are but if I were you...
I would ask the user how many floating numbers they wish to enter.
Then using Dynamic Memory allocation create a memory space for an array of floating point numbers.
Then use a for loop to enter each number into the array until there are no numbers left.
Once you've stored that array, then you can create functions to the rest of the items.
*wondering whether it might be more useful to have a vector instead of array*