Texts:
C++ P26. Declare an array of doubles with the name sensorValues that has 250 elements.
P27. Given an array of integers, intValues, of length int numValues, write a for loop that writes all the values of intValues to the screen. Assume an integer index, i, to address the array.
P28. Repeat P27, except now use an integer pointer, int *p, and in your loop, increment p and use the pointer to write out the index value rather than indexing it with an integer value.
P29. Who is responsible to make sure that an array is not indexed out of bounds (circle 1)
i. The compiler
ii. The user (someone else using your program)
iii. The programmer (you)
iv. The professor
P30. Write a function declaration for a function named FindWaldo. You will pass an array of strings as an argument. The function will return the integer index of which element of the string array contains the name Waldo. (Note, do not write the function definition, just the declaration.)
P31. Write the lines of code that reads in an integer number from the command window (using cin) and then dynamically creates an array of doubles named boxValues, with the length read in.
C++ * Explain your answers if possible. I will definitely give you a thumbs up.