Colorado State University Computer Science Department


CS166 Program1 (Homework 5)

Sequential Search Program
Spring 2004


Program Skeletons

You are required to complete the following program for HW 5. Use only the code provided here! Do not use any other classes.

SequentialSearch.java

The above program uses the Result class defined in the following file (a Result object contains the results of the program, that is, the number of comparisons, a location in the list or the value –1, and a Boolean value (true or false) indicating whether the target integer is in the list or not):

Results.java

 


Comments: france@CS.ColoState.EDU
Last modified: March 5, 2004