Answer to Question #52293 in C++ for Josh
a. After all of the even integers in the data are read into the array, write the contents of the array to the screen
b. In main prompt the user for an integer and read it in from the keyboard.
c. Write a linear search function that is passed the array, the number of elements in the array, and the number read in from the keyboard. The function should return the index of the element where the number is found or a -1 if not found.
d. After the function is called in main write a message to the screen “found” if the integer was found, if not, display “not found”.
a. Open Notepad or Visual Studio and create a file that is a list of integers, one per line, with the following 10 integers. Save your file as data.txt in the same folder as your .cpp file.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!