In this Individual Project, you will continue working on your application. In Week 4, you used 2 arrays to represent the list of products and their quantities. Memory needs were determined before program execution. This week, you will use dynamic allocation so the memory needs are determined during runtime. The functionality of the program is not expected to change. You also need to update the project document by explaining the changes implemented, and discuss how using dynamic memory allocation changed your application structure.
The Application
int * numbers;
numbers = new int [n];
char Temp[100]; // to hold the entry
char * products [100]; // to hold the products
cin >> Temp; // to get the product
int len = strlen(Temp) +1 ; // to determine the length of the product name
char* newProduct = new char[len]; // to allocate memory
strcpy(newProduct, Temp); // to copy the entry to a new product
products[0] = newProduct; // to save in the array