Program checkZIPS is working well with all the zip code except "BK 87946". When I entered BK 87946 the output was “Zip BK 87946 not found”. That means program is behaving very strangely. Please explain. I am attaching the program.
using System;
public
{
Console.Write("Enter Zip code: ");
enterzip = Console.ReadLine();
x = Array.BinarySearch(zips, enterzip);
Console.WriteLine("Zip {0} not found", enterzip);
Console.WriteLine("Zip {0} was found at position {1}",
enterzip, x);
}