Question: Use C++ only please. Write a C++program that creates a dynamic ID array. Prompt the use for the size of the array and fill it

Use C++ only please.
 Use C++ only please. Write a C++program that creates a dynamic
ID array. Prompt the use for the size of the array and

Write a C++program that creates a dynamic ID array. Prompt the use for the size of the array and fill it in with values. You are also asked to implement the following 3 functions: double* addValue (double arr_in, int& size, double newValue); This functions creates a new array with size+1, copies old array values and append the new value entered by the user. The new array is then returned to the main function. double deleteValue (double arr in, int& size, double deleteValue) This function creates a new array with size-1, copies old array values except for the value to be deleted (delete Value). You can assume that the array contains unique value. Also note that if "delete Value" does not exist in the original array t function will simply return the original array as is. hen the int void printArr (double* arr in, size) This function prints out the value of an array Here is an example main function (incomplete): void main () int size; double* arr in; //read size and create array printArr (arr_in, size) arr in-addEntry (arr in, size printArr (arr_in, size)

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!