Question: How would i write this program in C++? Task: Write a C++ program that implements a lookup functionality on an array. That is, the program
Task: Write a C++ program that implements a lookup functionality on an array. That is, the program should ask the user for a number and then linearly search through an array to return the index of that given number. If the element is not found then the program should return -1. [Note: declare and initialize an array having at-least ten elements.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
