Question: this is C++ programming. please, help me to solve this question. Assignment 3: Going Postal! In this assignment, you will write a program that could

 this is C++ programming. please, help me to solve this question.Assignment 3: Going Postal! In this assignment, you will write a program

this is C++ programming.

please, help me to solve this question.

Assignment 3: Going Postal! In this assignment, you will write a program that could be used by the United States Postal Service (USPS): it reads in a postal bar code r the zip code in digits. You can also see the description of this problem in exercise P4.17 on pg. 225 of your book. NThe actual description of the postal bar cod 224.) Your program should prompt the user to enter a postal bar code, with the character I representing a long bar, and the character repre should be entered. If a valid code is entered, the program should output to the console the 5-digit zip code. Ifan invalid code was en an error message to the console. The first and last bars input should always be long bars (the frame bars), and there will be a 6th check digit to make the sum of the numbe ECRLOT CO57 CODE C671RTS2 Frame bars JOHN DOE CO57 1009 FRANKLIN BLVD SUNNYVALE CA 95014-5143 Digit 1 Digit 2 Digit 3 Digit 4 Digit 5 Check IIIIIIIIIIIIIIIIIIIII,IIIIIIIIIIIIIIIIIIIIIIIIIIII Digit Figure 17 A Postal Bar Code Figure 18 Encoding for Five-Digit Bar Codes The bar code for each digit is given by a 5-bar block (consisting of 2 long bars and 3 short bars in some order). The code for each digit is represents a long bar, while a 0 represents a short bar. Digit: Code: 1 0 0 0 1 1 0 0 1 0 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!