# C++ code The assignment has two input files: • LSStandard.txt • LSTest.txt The LSStandard.txt file contains...

###### Question:

C++ code

The assignment has two input files:
• LSStandard.txt
• LSTest.txt
The LSStandard.txt file contains integer values against which we are searching. There will be no more than
100 of these. The LSTest.txt file contains a set of numbers that we are trying to locate within the standard data
set. There will be no more than 50 of these.
Read both files into two separate arrays.
Your program should then close both input files.
All subsequent processing will be done on the arrays only.
Use each number in the search value array from the LSTTest.txt file as a search value to search over the standard
array that contains the data set from the LSStandard data file. This search is accomplished by a function using a
Linear Search algorithm on the array that contains the standard data set.

Have your program display out a report to the console that indicates whether the number was found or not.
Your output should look something like:
Number 1 ( 79) was located at index 44.
Number 2 ( 74) was not in the file.
Number 3 ( 56) was not in the file.
Number 4 (103) was located at index 75.
etc.
Note that the number for which we searched is indicated in parenthesis in the display report. The index number refers to the index of the element within the stdList array data where the search value was found.
int searchList(int stdList [], int numElems, int searchValue)
You’ll notice that this function accepts an array as input parameter. That array, called stdList in the parameter list, will be the array that contains the standard data set. The parameter numElems is the number of elements in that array, and the parameter searchValue is the element that we are searching for.
Your function should search for searchValue within the stdList array and return one of two answers:
• a -1 if value is not in stdList array
• if searchValue is in stdList, the index position of searchValue within the stdList array.
This should be a number between 0 and numElems-1.
Your program should then use this result to determine what should be displayed in the report.
Note that some of the numbers in LSTest appear more than once in LSStandard. This Linear Search algorithm will return the first found instance.

Thank you

#### Similar Solved Questions

##### What's the integral of int (tanx)*(e^x)dx?
What's the integral of int (tanx)*(e^x)dx?...