Create a function that'll fill the array with random numbers. (use rand() and a for loop)
Create a sort function.
Create a search function. (Since your array is sorted, use binary search)
Create main().
- initialize your array of integers.
- call random number function
- call sort function
- prompt user for a number
- call search function for the user's number
- display result then prompt again
- display arrays content
*just search the net for codes (search, sort)
 Can we see what you've done so far?
|