Exercise 12 - due at 11:59:00 PM EDT on Sunday 4/17/2022 through Canvas You may solve all problems in a single program. 1. Create a pointer to an array of 10 integers. Use the dereferenced pointer and pointer arithmetic to add all numbers in even positions and subtract all the numbers in odd prositions from an overall total. Print the total. Sample Run: Enter an array of size 10 12 -5 9 10 32 -117 258 19 39 6 The total is 437 Explanation: 0 + 12 - (-5) + 9 - 10 + 32 - (-117) + 258 - 19 + 39 - 6 = 437 2. Declare a dynmaic double variable. Ask the user for a value and store it in the dynamic double variable. Then print the cube of that number. Sample Run: Enter a number: 2.5 The cube is 15.625 3. Write a C++ function that accepts an integer 'N' as a parameter. Create a double array of size N. Then, accept N values from the user and store the square roots of the numbers in the array. Finally, return the array to the main function and print it there. Make sure you delete the array. Sample Run: Enter the number of values: 5 Enter the values: 2.5 9 10.01 16.64 19 The Square Roots are: 1.5811 3 3.1639 4.0792 4.3589 4. Write a C++ code snippet that accepts the number of rows and colums from the user. Create a dynamic 2D array with the given number of rows and columns. Read in the values from the user. Then, print he elements along the main diagonal of the matrix. The main diagonal is all values where the row number is the same as the column number. Then, delete the array. You can do all this in main. Sample Run: Enter the number of rows: 4 Enter the number of columsn 5 Enter the values: 12 16 23 -21 5 18 56 -8 19 11 45 67 2 90 41 -98 0 100 31 123 The leading diagonal is: 12 56 2 31 5. Write a C++ code snippet to create a Structure called Meal. It has 4 data elements - entre, side, drink and price. The first 3 are strings, the last is a double. In the main function, create a variable of type Meal. Read in the values and then print them back out. Sample Run: Enter your meal details: Entre - Chicken Sandwich Side - Waffle Fries Drink - Lemonade Price - 7.45 You had a Chicken Sandwich with Waffle Fries and Lemonade. Your meal was $7.45