Question: C++ Exercise 1: Reverse Arrays A. Write the following functions: 1. readArray() that takes as parameters 1D array of double values and its size then
C++ Exercise 1: Reverse Arrays A. Write the following functions: 1. readArray() that takes as parameters 1D array of double values and its size then reads and stores n values in that array. 2. displayArray() that takes as parameters 1D array of double values and its size. The function will display the values of the array to the standard output. 3. reverseArray0 that takes as its parameters 1D array of double values and its size. The function must reverse the order of the values in the array. The function should not return any value. Write a main program that prompts the user to enter a positive integer n, and then calls the functions 'readArray','reverseArray, and displayArray", to read, reverse and display the B. resulting array, respectively Sample input/output: Please enter the number of values in the array lease enter the values for your array: 5.8 2.69.0 3.47.1 7.1 Process returned (exe) execution time 1S.718 s Press any key to continue. 3.4 9 2.6 5.8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
