Linear search visual basic

  • Posted
  • Proposals 1
  • Remote
  • #6907
  • Expired
Riaz F. has already sent a proposal.
  • 0

Description

Experience Level: Entry
write me a probram which searches an array for 100 numbers for one particular number, and displays the position of the number in the array. If ot found to sat its not there.. Also displays number of comparisons needed to find it.
subroutines to include
1.procedure to store the numbers(100 numbers) ,random numbers. Each number to be between 1 and 1000.
2.procedure display numbers, display numbers in an array preferably 10 per line(doesnt matter about 10 per line)
3.function, get search number, user enters number to search for, and it is returned.
4.linear search , once it finds number use a \"do loop until loop\" searches for a number the usser put in the array, it returns the position in the array of the number or -1 if the number not found also returns number of comparisons

Clarification Board

    There are no clarification messages.