Question
: Write a C++ program to read a list of values from the user and then search for a specific value in the list. Your
: Write a C++ program to read a list of values from the user and then search for a specific value in the list. Your program should display the position of the search value in the list is the search value in found in the list else should display search unsuccessful. Your program should essentially perform the following tasks. First your program should ask the user for the number of values in the list. Next, you should call a function to read the values from the user you should define a function for reading the input values - the function should the array to store user input values as input parameter. The second parameter should be number of values to input. (You can use the function readArray ) Your program should ask the user for a search value to searched in the input list. You should call a function to check if the search value is found in the list of values. The function should display the position of search value in the list if the search is successful else should print search unsuccessful.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started