Question: Write an error-free Python program to do the following things. Prompts the user to input five integer data values. The five values correspond to the
Write an error-free Python program to do the following things. Prompts the user to input five integer data values. The five values correspond to the five numbers in a typical zip code. The numbers should be entered one at a time. Inputting all 5 numbers as a single zip code value is possible but I think one-at-a-time will make the program easier. From the main program, call a function that calculates and displays the bar code for each number. The bar code for each digit is 5 bars, two of which are tall and three of which are short. I used the (1) symbol for the tall bar and the colon () symbol for short bar. After the five numbers have been entered and displayed), call a function to calculate the check digit for the zip code. The check digit is added to the sum of the numbers to make the total sum (five numbers of zip plus check digit) a multiple of 10. For example, for a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
