Linear search visual basic
- or -
Post a project like this£10/hr(approx. $13/hr)
- Posted:
- Proposals: 1
- Remote
- #6907
- Expired
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
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
Jack R.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
0%
Last project
25 Apr 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies