C++ Postnet Cpp

POSTNET (Postal Numeric Encoding Technique) is a barcode system that was used until 2013 by the United States Postal Service to assist in directing mail. The zip code and a check digit were encoded in half-height and full-height bars and printed on letters. Full-height frame bars were placed on either side of the six encoded digits. For this part of the project, your program will simply prompt the user for a name, street address, city, state, and zip code and output a mailing label. See Sample Output on page 2 for all the required output and format. Note the row of asterisks followed by the word, “Postage”. This is required.In the next project, your program will output a true barcode using : for half bars and

for full bars, but you will not do any encoding in this part of the project. Instead, for your "pseudo" barcode you will:Break a 5 digit zip code into individual digits
Calculate a check digit
Display all 6 digits with a space between each digit
Surround the group of digits with frame bars
To calculate the check digit:Add up the 5 zip code digits. For example, if a letter is sent to 37668 it would have the sum of 30.
Find the remainder of this number when it is divided by 10, in this case 0. This is also known as the sum modulo 10.
Subtract the sum modulo 10 from 10. Continuing with the example, 10 − 0 = 10.
Find the sum modulo 10 again. The check digit is 0.Summary:Write a program that prints a mailing label with all information specified in the Sample Output.Prompt the user for their name, street address, city, state and zip code.Calculate a check digit.Create a "pseudo" barcode and display it on the mailing label.Your program's output should be formatted in the same manner as the Sample Output. Barcode digits are separated by spaces. Use

for frame bars to surround the group of barcode digits.
Powered by