Question: IN C++ (10 pts) Write a function that takes as an input parameter an integer that will represent the length of the array and a
IN C++

(10 pts) Write a function that takes as an input parameter an integer that will represent the length of the array and a second integer that represents the range of numbers the random number should generate (in other words, if the number is 50, the random number generator should generate numbers between 0 and 49 including 49 The function then sorts the list by traversing the list, locating the smallest number, and printing out that smallest number, then replacing that number in the array with the second parameter +1 (so in our above example, it would be 51.) Continue to do this until every number in the original array is printed out in order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
