Convert these barcodes into their original human-readable ZIP codes.
Follow these steps:
1.Ignore the _rst character (i.e. the long bar at the beginning)
2. Separate out each number one by one (note that each number is represented with 5 bard and we are ignoring the _rst bar). Once you reach 9 digits, stop. The rest is quality control and we will worry about that towards the end of the assignment. Use a for loop for this step.
3. Convert each \block of 5 bard” to a number according to the table above. Store each digit in a row vector. Use a for loop for this step.
4. Once you’re done with your conversion, save the ZIP code into a matrix.
5. Repeat steps above for all barcodes.
ASSIGNMENT PART II (25 pts):
Now incorporate checksum veri_cation as described above into your code. Follow these steps:
1. Using a for loop, verify the integrity of each barcode. Check to see if their checkdigit passes the test.
2. Repeat for all barcodes.
3. Once you have all the data. Have a printout on the screen with the following format using the fprintf function. NOTE THAT WE WANT THIS TO BE THE ONLY PRINTOUT ON THE SCREEN. MAKE SURE NOTHING ELSE IS DISPLAYED.
In case you guys were wondering, the idea of a barcode was invented at Drexel! There even is a sign in Bossone for it. Check it out when you get a chance. Barcoding products is one of the most widely used idea in the world. It allows you to receive packages from UPS, check your baggage for a ight (and get it back when you land), and buy groceries very fast.