Question: Write a program named ProgramAssignment5_YourName.cpp to use arrays in sequential search. Searching some item in a list is to compare every element in the list



Write a program named ProgramAssignment5_YourName.cpp to use arrays in sequential search. Searching some item in a list is to compare every element in the list with the given one, if matching return the position; if not return -1 (the given item is not in the list). Sequential search means the comparison starts from the very first element in the list, one by one, till find the matched item or to the end of the list In this project, the list of items are stored in an array. What you need to do are: 1. Declare an array without initialization 2. Access the element of the array: assign a value to each element of the array 3. Make a function call (review of functions) 4. Access the element of the array: compare each element with the given item . If matching, found is true If not match, forward to the next element for the next comparison 5, Provid In the comments on the top of the code, change the name and date according to the local notes 6. The given code is included in the box on the following pages. Projects for Arrays This illustrates to use a sequential search to * find the tion of the fist apparance of a number in an array * Created b Li i1 10 2018 10 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
