ITM 207 Lecture 6: ITM 207 Lecture : ITM 207 Lecture : ITM 207 Lecture
Document Summary
Lab-7: sequential search on a sorted array (2%) Sequential search on a sorted array is done using the following algorithm: Download the sample. txt" and lab7. rap" file from d2l and save to desktop. The data file stores a few numbers and the numbers are already sorted. Your task is to create a raptor program that will load all the numbers from the file and will apply the sequential search algorithm to find a number. Sure you put the sample. txt file and the raptor file in the same folder] Your program should ask for a number to be searched. Then to find the number you need to apply the sequential search algorithm. If the number is found in the array then the program should output number found -message along with the location of the number and the total number of required passes.