Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Program With Sequential Search

  Asked By: Mamadou    Date: Oct 07    Category: Java    Views: 517
  

create a function based on Sequential Search and a program that will generate a list of random numbers in the range of 1 to N that you can use for your search, where N could be any number between 100 and 1000.Your main program should then call the sequential search for each number between 1 and N.

Hint:

1) Generate N random number where user should be ask to input N random number and store them in an array (Method 1)

2) Ask users to enter a target(key) between 100 and 1000

3) Start searching using Sequential Search (Method 2)

So the program should have 2 methods and the main method.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Program With Sequential Search Or get search suggestion and latest updates.




Tagged: