guys...could I ask for your help, I was given a programming assignment but I cant seem to understand the problem
heres the problem: write a program that creates an array of 100 random integers in the range from 1 to 200 and, then use a sequential search to search the array 100 times using randomly generated targets in the same range. at the end of the program, display the statistics of the number of searches it has completed, the number of successful searches, the percentage of successful searches and finally l the average number of test per search.
what i don't seem to understand is the is the use of the sequential search....should I generate one random number then search if it is in the array?? should i search the number a hundred times then after that generate another number to be searched or should I generate many random numbers and search it in the array? A successful search could be attained by searching the array just once...why do I have to search it a hundred times?