Question: C++ programing problem, could you please help me the this Arrays problem? Populate a one-dimensional array with ten unique random numbers between 1 and 100.

C++ programing problem, could you please help me the this Arrays problem?

C++ programing problem, could you please help me the this Arrays problem?

Populate a one-dimensional array with ten unique random numbers between 1 and 100. Print the array to see what values were written in it. Repeatedly ask the user to type a number (until the user enters a -1). If the number is in the array, remove it and shift each following element to the left. Add a zero at the end of the array. In the end, print the modified array. Original Array: numbers[0] = 8 numbers[1] = 50 numbers[2] = 74 numbers[3] = 59 numbers[4] = 31 numbers[5] = 73 numbers[6] = 45 numbers[7] = 79 numbers[8] = 24 numbers[9] = 10 Delete number (-1 to quit): 50 Delete number (-1 to quit): 31 Delete number (-1 to quit): -1 Modified Array: numbers[0] = 8 numbers[1] = 74 numbers[2] = 59 numbers[3] = 73 numbers[4] = 45 numbers[5] = 9 numbers[6] = 24 numbers[7] = 10 numbers[8] = 0 numbers[9] = 8

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!