IDEAL HOMEWORK
KEY FOR HW#1
----jGRASP exec:
U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
0
Enter the test elements in order, one per line.
Input value for which to search: 9
Search value not found in list
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
1
Enter the test elements in order, one per line.
4
Input value for which to search: 4
Search value found at location 1
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
1
Enter the test elements in order, one per line.
4
Input value for which to search: 7
Search value not found in list
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
8
Enter the test elements in order, one per line.
3
5
7
9
11
13
15
17
Input value for which to search: 3
Search value found at location 1
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
8
Enter the test elements in order, one per line.
3
5
7
9
11
13
15
17
Input value for which to search: 9
Search value found at location 4
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
8
Enter the test elements in order, one per line.
3
5
7
9
11
13
15
17
Input value for which to search: 8
Search value not found in list
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
8
Enter the test elements in order, one per line.
3
5
7
9
11
13
15
17
Input value for which to search: 17
Search value found at location 8
----jGRASP: operation complete.
********************************************************
----jGRASP exec:
U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
8
Enter the test elements in order, one per line.
3
5
7
9
11
13
15
17
Input value for which to search: 1
Search value not found in list
----jGRASP: operation complete.
********************************************************
----jGRASP
exec: U:\Web\CS240_Fall_2007\Chapter_01_Textbook_code\binary_search_test
Enter number of test elements (0-10).
8
Enter the test elements in order, one per line.
3
5
7
9
11
13
15
17
Input value for which to search: 100
Search value not found in list
----jGRASP: operation complete.
********************************************************