Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ - This is a long program(at least for me) so rather than asking someone to take a lot of their time to do the

C++ - This is a long program(at least for me) so rather than asking someone to take a lot of their time to do the whole program for only one upvote. I'd just like to ask someone to tell me where to start or show me the code needed to fulfill the task of the assignment. Please read all of it and then purpose a way to attack it. Thanks!

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Until 2009, the US Postal Service printed a bar code on every envelope that represented the zip code using a format called POSTNET. We will be doing the same with only 5-digit zip codes. POSTNET consists of long and short lines, as seen below: The POSTNET representation of br2b0, WSU's zip code In the program, the zipcode will be represented by an integer and the corresponding barcode will be represented by strings of digits. The digit 1 will represent the long bar, and the digit 0 will represent the short bar The first and last digits of a POSTNET code are always 1. Stripping these leaves 25 digits, which can be split into group s of 5. The above example translates into the following string and groups of ve: 101100100010010101100110001 01100 10001 00101 01100 11000 Now, we look at each group Therevw group, each 1 represents a number. When the numbers that the 1's represent are added together you get that digit of the zip code. The table below translates the first group, which represents the number 6 p of 5. There will always be two 1's. Depending on its location within the ow. we 011 0 0 POSTNET Digits Value 7 42 1 0 We see that the l's correspond to the values of 4 and 2, respectively. Adding them up gives us 6, which is the first digit of the zip code (and also the fourth since the same group appears again, due to the zip code having two 6's) In order to represent the number 0, the 1's will add up to a value of 11. This is done because of the requirement that every group of five always has two 1's in it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

Identify the primary functions of the left and right hemispheres.

Answered: 1 week ago