ITM 207 Lecture 6: ITM 207 Lecture : ITM 207 Lecture : ITM 207 Lecture

23 views4 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents