Question: Write a C++ program that has an array containing 10 integers. Create a loop to allow the user to enter values into the array.

Write a C++ program that has an array containing 10 integers. Create a loop to allow the user to enter values

Write a C++ program that has an array containing 10 integers. Create a loop to allow the user to enter values into the array. Set a pointer to the array and ask the user for an element number, then print the value in that element of the array using the pointer. Next, print the next two values in the array using the same pointer. (For example, if the user enters element 5, the program needs to show the values stored in the fifth, sixth and seventh elements. Lastly, ask the user for a value and use a linear search to report if the value is stored in some element in the array or not.

Step by Step Solution

3.50 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

There are no images attached to your message Based on your provided question I will answer it direct... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!