Question: Exercise 2 Write a program that asks the user to enter an array of random numbers, then sort the numbers (descending order), after that reverse
Exercise 2 Write a program that asks the user to enter an array of random numbers, then sort the numbers (descending order), after that reverse it (the first element will be the last...). Below an example of execution. (users input is in ted): *********Welcome to the sorting program*** Please enter the size of the array A you want to sort in descending way, 5 Please enter A[0]: 2 Please enter A[1]: 8 Please enter [2): 5 Please enter A[3):9 Please enter A[4): 1 The array A you gave and want to sort is: The array A sorted in a descending way: Reversed sorted array A Note: Your codes should be well commented. C++ programing , plz by if or while
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
