The U.S. Postal Service printed a bar code on every envelopethat represented a five-( or more) digit zip code using a formatcalled POSTNET (this format was deprecated in favor of a newsystem, OneCode, in 2009).
For this program, we will represent the bar code a string ofdigits. The digit 1 represents a long bar and the digit 0represents a short bar. The bar code would be represented in theprogram as
110100101000101011000010011
The first and
OR
OR