Write a C++ program that will
• Ask the user how many whole numbers they wish to enter (max 20)
• Read that many numbers
• Print them in the order they were entered
• Sort them in order by increasing value, and print them in the sorted order
Use an array to store the integer values read.
Sorting will be done in a function where the array will be the first parameter and the number of integers entered into the array will be the second parameter.
Use the bubble sort algorithm discussed in the class.
I am extremely confused. The code below is what I managed to get but I have the numbers coded in as opposed to being able to be entered. How do I adjust my code below to fit the requirements from above?