I wish to a write a program that creates an array of 100 random integers in the range for just argument sake from 1 to 200 and, then use a sequential search to search the array 100 times using randomly generated targets in the same range. Can anybody please help me? I love to also as a feature at the end of the program, display the statistics of firstly the number of searches it has completed, secondly, the number of successful searches, thirdly, the percentage of successful searches and, finally last but not least, the average number of test per search.
PS---I kno already that in order for me to determine the average number of tests per search, i will need to count the number of test for each search. Well at least that is what i figured(DUH). If it's possible i would appreciate it if anyone can help me with this project and that whom so ever can help me solve this problem can take as long as possible to find the solution. Link me up when u found out how to do this.