Problem:
Beginning C++ Programming - Sorting
Question- Write and test a C++ program to print a set of real numbers in descending order. The program should also print out the median of the numbers input and how many numbers were input.
The program should read in numbers until a negative number is read. The negative number serves as a sentinel or marker telling the program when to stop reading numbers. The program should then sort the numbers and print them out in order from largest to smallest. Note, the sentinel number is not to be considered as one of the numbers, it should not be printed.
The program should be able to handle up to 100 input numbers. If the user attempts to enter more than 100 numbers, the program should print an error message and quit.
Show the code, demonstrate it works properly and describe what it is doing.