Searching an Array

Searching generally means finding one particular item in a list. If you are looking for everyone who worked overtime, or all items that need to be reordered, this is referred to as an exception report, not a search.

An exception report is straight forward: loop through every item: if it matches the criteria, print it out.

Please study the material at each of the links below.

  1. Sequential search
  2. The sequential search code
  3. A Binary Search
  4. A number guessing game
Like us on Facebook:


OER: Open Educational Resource
Creative Commons License Author: Janet E. Joy; Publisher: Zebra0.com
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
Creative Commons Attribution-NonCommercial 4.0 International License
Last modified: May 18 2017 14:07:42.