Write a program to allocate memory dynamically for an int array with 1000 elements. Next assign a random number between 5 and 15 to each. Note: This needs to be written in C++. Solution main.cpp #include using namespace std; int main () { int* a = NULL; // Pointer to int, initialize to nothing. int n = 1000; // array size a = new int[n]; // Allocate n ints and save ptr in a. for (int i=0; i.