need help with a C++ assignment are you available?i need solution with 15 hours
1.Allow the user to enter n, the number of values to be processed; then allocate an
anonymous array of n doub1e values, storing its address in doublePtr.
2. Fill the anonymous array of Exercise 1 with ninput values, entered from the
keyboard.
3. Compute and display the average of the values in the anonymous array of
Exercise 1.
4.Deallocate the storage of the anonymous array of Exercise 1.
5. In Exercise 1, if the value of doublePtr is 1000 and double values are stored in 8 bytes, draw a memory map showing the addresses of the first few elements of the anonymous array.
6.Assuming that addresses are stored in 4 bytes and double values in 8 bytes, tell what output will be produced by the following statements:
doubledubValues[] = {l.l, 2.2, 3.3, 4.4, 5.5};
double * dubPtr = dubValues;
for (inti = 0; i< 5; i++)
cout< < << *(dubPtr + i) « endl;
4.classCartesianPoint for a point (x, y) in a Cartesian coordinate system
10.Write and test a class for a Line, described by its slope and a point on the line, with functions that a. Find the point-slope equation of the line b. Find the slope-intercept equation of the line
12. Write a program to read the point and slope information for two lines and to determine whether they intersect or are parallel. If they intersect, find the point of intersection and also determine whether they are perpendicular. Use the classes CartesianPoint from Exercises 4 and 10 and Line from Problem 11 to represent points and lines, respectively.