Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

List 4 methods to evaluate training.

Answered: 1 week ago