Problem Set 15: Bar Code

Web-CAT: Submit Java programs to this automated grading platform.

Task Outline

Background Theory

Left Section

Right Section

Lookup Table

10100011010011001001001100011010001101000110101010111001011100101101100100001011100101011100101

Example Case

Applying the Algorithm

\underline{0}1\underline{2}0\underline{0}0\underline{0}0\underline{2}3\underline{0}4
0 + 2 + 0 + 0 + 2 + 0 = 4
4 * 3 = 12
1 + 0 + 0 + 0 + 3 = 4
12 + 4 = 16
16 \,\,\texttt{%}\,\, 10 = 6
10 - 6 = 4

Hints

Code Distribution

Description File Size File Name
Java Source Code for Bar Code 5.8KB pset15.zip

Contents of pset15.zip:

PSet15BarCode/
├── BarCode.class
├── BarCode.ctxt
├── BarCode.java
├── BarCodeJUnitTest.class
├── BarCodeJUnitTest.ctxt
├── BarCodeJUnitTest.java
├── package.bluej
└── README.TXT

Specification

Testing

Submission