Question details

Write a program A+ rated
$ 50.00

Write a program, which will ask the user how many integer numbers they wish to enter.
The program will then read that many numbers, print them in the order they were entered,
sort them in order by decreasing value, and print them in sorted order.
All numbers entered and displayed will be integer values.
The maximum number of integers to be handled will be 20.
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 an array to store the integer values.
Use a modified version of the bubble sort algorithm provided in class to sort the integers.

 

Available solutions