Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**PLEASE USE C++** also please keep its simple using basics only (if and while..) and add commentary if u have the time. Thanks in advance

image text in transcribed

**PLEASE USE C++** also please keep its simple using basics only (if and while..) and add commentary if u have the time. Thanks in advance

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. user's input is in red): *********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 All): Please enter A[21:5 Please enter A[3): Please enter A[4): 1 The array A you gave and want to sort is: 1 The array A sorted in a descending way 9 8 5 21 Reversed sorted array A 1 2 5 8 9 Note: Your codes should be well commented

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

Discuss why there is a need for personal liability insurance.

Answered: 1 week ago

Question

1. Identify six different types of history.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago