11/6

WARM UP:

Write a custom block called "index of" that takes a list and a value as arguments and reports the index at which the value is found in the list, if it is there. If the value is not present anywhere in the list, report -1. So, for example, if the list is (2, 3, 5, 7, 11) and the value is 5, "index of" should report 3. If the list is (2, 3, 5, 7, 11) and the value is 4, "index of" should report -1.

Go thru these three items below and then introduce two search algorithms. Binary and Sequential and discuss how to implement them with snap.

SAVE AS: Nov 6-Last Name