+1-316-444-1378

Array Shifter and Array Reversal

Write a function that accepts an array of doubles and the arrays size as arguments. The
function should create a new array that is one element larger than the argument array.

The first element of the new array should be set to 0. Element 0 of the argument array should be copied to element 1 of the new array, element 1 of the argument array should be copied to element 2 of the new array, and so forth. The function should return a pointer to the new array.

Write a second function that accepts an array of doubles and the arrays size as arguments. The function should create a new array that contains all of the original array’s elements in reverse order.

Last of all, have a main function that demonstrates the correct working of these two functions.

To be submitted:

Flowchart of your program design using draw.io.
C++ source code file (.cpp file) of your program.