The code should store the reversal of the array or vector


The application must be able to take as input positive integer values, note -1 will indicate the user has finished entering values.

(2) The number of elements to be input will not be known before the code starts. However, it should be able to handle 100.

(3) The code should store the reversal of the array or vector in the same vector as the input. In other words, it is not sufficient to simply print the values in the reverse order. You must re-arrange the values within the array or vector.

(4) The output should be a printout of the elements entered in reverse order of entry. This will be printing the elements of the reversed array or vector from 0 to the number of elements.

(5) The first version of the code (ArrayReverse.exe) should use an array to store data and do the reversal. The second version (VectorReverse.exe) should use a vector for these purposes.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The code should store the reversal of the array or vector
Reference No:- TGS0136474

Expected delivery within 24 Hours