Computer Science Illuminated
Computer Science Illuminated
7th Edition
ISBN: 9781284155617
Author: Nell Dale, John Lewis
Publisher: Jones & Bartlett Learning
bartleby

Videos

Question
Book Icon
Chapter 18, Problem 42E
Program Plan Intro

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.

Expert Solution
Check Mark

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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  1

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  2

  • 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).

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  3

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  4

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  5

  • 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).

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  6

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  7

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  8

  • 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).

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  9

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  10

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  11

  • 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).

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  12

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  13

  • 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.

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  14

  • 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).

Computer Science Illuminated, Chapter 18, Problem 42E , additional homework tip  15

  • 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?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
How can I type the Java OOP code by using JOptionPane with this following code below: public static void sellCruiseTicket(Cruise[] allCruises) { //Type the code here }
Draw a system/level-0 diagram for this scenario: You are developing a new customer relationship management system for the BEC store, which rents out movies to customers. Customers will provide comments on new products, and request rental extensions and new products, each of which will be stored into the system and used by the manager for purchasing movies, extra copies, etc. Each month, one employee of BEC will select their favorite movie pick of that week, which will be stored in the system. The actual inventory information will be stored in the Entertainment Tracker system, and would be retrieved by this new system as and when necessary. Example of what a level-0 diagram looks like is attached.
What is the value of performing exploratory data analysis in designing data visualizations? What are some examples?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Introduction to Computers; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=-AP1nNK3bRs;License: Standard YouTube License, CC-BY
Computers for Beginners: Introduction; Author: Carson City Library;https://www.youtube.com/watch?v=jH8pgGfG9HY;License: Standard Youtube License