Question: In C++, Make 100-150 random numbers (between 1-200) and put them in a text file. Each number should be on it's own line. Next, in

In C++,

Make 100-150 random numbers (between 1-200) and put them in a text file. Each number should be on it's own line.

Next, in a new function, the program should read the numbers and make a dynamic array with the numbers.

Then, in a new function, print values of the array. This should be done by creating a function that accepts two arguments, a const integer pointer to the array and size printValues(const int *arr, int size)

The program should ask the user to enter a "key value" and then find all numbers that are above that key value, store them in a dynamic array and return that array. Then your program should call the printValues function passing the new array. This should be implemented in as a pointer returning from a function (i.e. the function should return a pointer to the new array)

Print the array in reverse . Your program (via a function) should create a new copy of the array, except that the elements should be in reverse. The function should return a pointer to the new array. Then call printValues to show the values of the new array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!