Question: Please program in C language Introduction For faster sorting of letters, the United States Postal Service ncourages companies that send large volumes of mail to

Please program in C language  Please program in C language Introduction For faster sorting of letters,
the United States Postal Service ncourages companies that send large volumes of
mail to use a bar code denoting the zip code. The encoding
scheme for a five-digit zip code is shown in the below figure.

Introduction For faster sorting of letters, the United States Postal Service ncourages companies that send large volumes of mail to use a bar code denoting the zip code. The encoding scheme for a five-digit zip code is shown in the below figure. There are full-height frame bars (I) one on each side to specify the inning and the end of a bar code for a zip code. In between are the encodings for the five zip code digits and a correction digit, in terms of their weights, 0's or 1's, where 0 is a half-height frame bar and 1 is a full-height frame bar I. For example, for the digit 2, its corresponding wei 00101, which can be represented as in the bar code The correction digit for a given zip code is computed as follows Add up all the digits of a given zip code, then choose the correction digit to make the sum a multiple of 10. For example, the zip code 46805 has a sum of digits of 23, so the correction digit is 7. (n another words, 23 7 30 which is a multiple of 10). Each digit of the zip code and the correction digit are translated into bar-codes according to its wei in the following table igit Weights These data are in an input file called digitWeights.bkt Each 1 denotes a full-height bar and each 0 denotes a half. height bar. Thus, each digit is encoded as a five full- and half-height bars. For example, a 6 is This project to construct a C program which generates a random sequence of 20 zip codes, using srand( creates and displays their corresponding bar-codes. Input Specifications Build an input file contains a data table which depicts the digits 9) and their co rrespond weights, as shown above. to, l Name of this input file as digitWeights.txt". This input file contains 10 rows and six columns. The first column is one of the decimal digits 0 9. The next five columns are the weights containing either 0 or 1

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!