Check digit:
- The digits in the number are added together, and the unit digit of the result is called as check digit, which is used for error detection.
- The unit’s digit of that sum is stored with the number.
- The additional digit is used along with the check digit to find out the transposition error, and it can be found out by the sum of even digits or odd digits in the number.
For example,
Consider the number 3422.
Count the numbers from left to right; it produces the sum of the digits as 11. It is stored as 3422-15.
- Here, “1” is the unit’s digit of the sum of all the digits, which is called as check bit.
- “5” is the unit’s digit of the sum of the first and third digits (3+2 =5), which is the additional digit used along with the check digit.
- While storing the above number 3422-15, if “2” is corrupted by “4” and “4” is corrupted by “2”, it leads to a transposition error.
- So, the number is received as 3242-15.
- By adding the number, it produces the check digit as “1” and it produces the additional digit as “7”.
- But the received additional digit is “5”. Hence, it is clear that the received number is corrupted.
- So, the number is received as 3242-15.
![Check Mark](/static/check-mark.png)
Explanation of Solution
a.
Find the additional digit using the sum of odd digits for “1066” numbers:
The additional digit (using the sum of odd digits) for the number 1066 can be determined by the following steps:
Check digit:
- Step 1: Count the given number from left to right.
- Step 2: From the above diagram, the sum of digits produces the result as 13.
- Step 3: The unit’s place in the sum represents the check digit. Thus, “3” is in the unit’s place.
- Step 4: Therefore, check digit for the number 1066 is 3.
Additional digit:
- Step 1: In the given number 1066, take the numbers from the odd position from left to right.
- Step 2: From the above diagram, it is clear that the number “1” on first position and the number “6” on third position are the odd position numbers.
- Step 3: The sum of digits produces the result as “7” (1+6 = 7).
- Step 4: Hence, “7” in the unit’s place is the additional digit used along with the check digit.
Therefore, additional digit used along with the check digit “3” for the number 1066 is “7”.
Explanation of Solution
b.
Find the additional digit using the sum of odd digits for “1498” numbers:
The additional digit (using the sum of odd digits) for the number 1498 can be determined by the following steps:
Check digit:
- Step 1: Count the given number from left to right.
- Step 2: From the above diagram, the sum of digits produces the result as 22.
- Step 3: The unit’s place in the sum represents the check digit. Thus, “2” is in the unit’s place.
- Step 4: Therefore, check digit for the number 1498 is 2.
Additional digit:
- Step 1: In the given number 1498, take the numbers from the odd position from left to right.
- Step 2: From the above diagram, it is clear that the number “1” on first position and the number “9” on third position are the even position numbers.
- Step 3: The sum of digits produces the result as “10” (1+9 = 10).
- Step 4: Hence, “0” in the unit’s place is the additional digit used along with the check digit.
Therefore, additional digit used along with the check digit “2” for the number 1498 is “0”.
Explanation of Solution
c.
Find the additional digit using the sum of odd digits for “1668” numbers:
The additional digit (using the sum of odd digits) for the number 1668 can be determined by the following steps:
Check digit:
- Step 1: Count the given number from left to right.
- Step 2: From the above diagram, the sum of digits produces the result as 21.
- Step 3: The unit’s place in the sum represents the check digit. Thus, “1”is in the unit’s place.
- Step 4: Therefore, the check digit for the number 1668 is 1.
Additional digit:
- Step 1: In the given number 1668, take the numbers from the odd position from left to right.
- Step 2: From the above diagram, it is clear that the number “1” on first position and the number “6” on third position are the even position numbers.
- Step 3: The sum of digits produces the result as “7” (1+6 = 7).
- Step 4: Hence, “7” in the unit’s place is the additional digit used along with the check digit.
Therefore, additional digit used along with the check digit “1” for the number 1668 is “7”.
Explanation of Solution
d.
Find the additional digit using the sum of odd digits for “2001” numbers:
The additional digit (using the sum of odd digits) for the number 2001 can be determined by the following steps:
Check digit:
- Step 1: Count the given number from left to right.
- Step 2: From the above diagram, the sum of digits produces the result as 3.
- Step 3: The unit’s place in the sum represents the check digit. Thus, “3” is in the unit’s place.
- Step 4: Therefore, check digit for the number 2001 is 3.
Additional digit:
- Step 1: In the given number 2001, take the numbers from the odd position from left to right.
- Step 2: From the above diagram, it is clear that the number “2” on first position and the number “0” on third position are the even position numbers.
- Step3: The sum of digits produces the result as “2” (2+0 = 2).
- Step 4: Hence, “2” in the unit’s place is the additional digit used along with the check digit.
Therefore, additional digit used along with the check digit “3” for the number 2001 is “2”.
Explanation of Solution
e.
Find the additional digit using the sum of odd digits for “4040” numbers:
The additional digit (using the sum of odd digits) for the number 4040 can be determined by the following steps:
Check digit:
- Step 1: Count the given number from left to right.
- Step 2: From the above diagram, the sum of digits produces the result as 8.
- Step3: The unit’s place in the sum represents the check digit. Thus, “8” is in the unit’s place.
- Step 4: Therefore, check digit for the number 4040 is 8.
Additional digit:
- Step 1: In the given number 4040, take the numbers from the odd position from left to right.
- Step 2: From the above diagram, it is clear that the number “4” on first position and the number “0” on third position are the even position numbers.
- Step3: The sum of digits produces the result as “4” (4+4 = 8).
- Step4: Hence, “4” in the unit’s place is the additional digit used along with the check digit.
Therefore, additional digit used along with the check digit “8” for the number 4040 is “8”.
Want to see more full solutions like this?
Chapter 18 Solutions
EBK COMPUTER SCIENCE ILLUMINATED
- (a) Algebraically determine the output state |q3q2q1q0> (which is a 4-qubitvector in 16-dimensional Hilbert space). Show all steps of your calculations. (b) Run a Qiskit code which implements the circuit and append threemeasurement gates to measure the (partial) output state |q2q1q0> (which is a 3-qubit vector in 8-dimensional Hilbert space). this is for quantum soft dev class, you can use stuff like Deutsch Jozsa if u wantarrow_forwardWrite a C++ program that will count from 1 to 10 by 1. The default output should be 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10 There should be only a newline after the last number. Each number except the last should be followed by a comma and a space. To make your program more functional, you should parse command line arguments and change behavior based on their values. Argument Parameter Action -f, --first yes, an integer Change place you start counting -l, --last yes, an integer Change place you end counting -s, --skip optional, an integer, 1 if not specified Change the amount you add to the counter each iteration -h, --help none Print a help message including these instructions. -j, --joke none Tell a number based joke. So, if your program is called counter counter -f 10 --last 4 --skip 2 should produce 10, 8, 6, 4 Please use the last supplied argument. If your code is called counter, counter -f 4 -f 5 -f 6 should count from 6. You should count from first to last inclusively.…arrow_forwardWrite a program that will count from 1 to 10 by 1. The default output should be 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10 There should be only a newline after the last number. Each number except the last should be followed by a comma and a space. To make your program more functional, you should parse command line arguments and change behavior based on their values. Argument Parameter Action -f, --first yes, an integer Change place you start counting -l, --last yes, an integer Change place you end counting -s, --skip optional, an integer, 1 if not specified Change the amount you add to the counter each iteration -h, --help none Print a help message including these instructions. -j, --joke none Tell a number based joke. So, if your program is called counter counter -f 10 --last 4 --skip 2 should produce 10, 8, 6, 4 Please use the last supplied argument. If your code is called counter, counter -f 4 -f 5 -f 6 should count from 6. You should count from first to last inclusively. You…arrow_forward
- Perceptual acuity, according to Ram Charan, explains how Ted Turner became the first CEO to recognize the potential of 24-hour news and thereby created CNN. a) True b) Falsearrow_forwardAs described in Learning from Mistakes, the failure of the A380 to reach its sales goals was due to Multiple Choice: a) misunderstanding of supplier demands. b) good selection of hotel in the sky amenities. c) changes in customer demands. d) lack of production capacity.arrow_forwardNumerous equally balanced competitors selling products that lack differentiation in a slow growth industry are most likely to experience high: a) intensity of rivalry among competitors. b) threat of substitute products. c) threat of new entrants. d) bargaining power of suppliers.arrow_forward
- A Dia file has been created for you to extend and can be found on Company.dia represents a completed ER schema which, models some of the information implemented in the system, as a starting point for this exercise. Understanding the ER schema for the Company database. To demonstrate that you understand the information represented by the schema, explain using EMPLOYEE, DEPARTMENT, PROJECT and DEPENDENT as examples: attributes, entities and relationships cardinality & participation constraints on relationships You should explain questions a and b using the schema you have been given to more easily explain your answers. Creating and Extending Entity Relationship (EER) Diagrams. To demonstrate you can create entity relationship diagrams extend the ER as described in Company.dia by modelling new requirements as follows: Create subclasses to extend Employee. The employee type may be distinguished further based on the job type (SECRETARY, ENGINEER, MANAGER, and TECHNICIAN) and based…arrow_forwardComputer programs can be very complex, containing thousands (or millions) of lines of code and performing millions of operations per second. Given this, how can we possibly know that a particular computer program's results are correct? Do some research on this topic then think carefully about your response. Also, explain how YOU would approach testing a large problem. Your answer must be thoughtful and give some insight into why you believe your steps would be helpful when testing a large program.arrow_forwardCould you fix this? My marker has commented, What's missing? The input list is the link below. https://gmierzwinski.github.io/bishops/cs321/resources/CS321_Assignment_1_Input.txt result.put(true, dishwasherSum); result.put(false, sinkSum); return result; }}arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
![Text book image](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)