Engineering
Engineering, 15.02.2020 05:58, aaminohasan142

2.ISBN. The International Standard Book Number (ISBN) is a 10-digit code that uniquely specifies a book. The rightmost digit is a checksum digit that can be uniquely determined from the other 9 digits in the following manner: • Multiply the first digit by 10, the second by 9, the third by 8, and so on, down to the ninth digit by 2. . Add the values together. • Divide the sum by 11. What is the remainder? • If the remainder is 0, the checksum is 0; otherwise, subtract the remainder from 11 to get the checksum digit. If the checksum that you come up with is 10, then X is used as the checksum digit! As an example, the checksum digit corresponding to 020131452 is 5 since 5 is the only value of x between O and 10 for which 10*0+992 +840 + 7*1 + 6*3 + 5*1 + 4*4 + 35 + 2*2 + 1*x is a multiple of 11. Write an algorithm that reads an integer number of 9 digits and displays the checksum digit of the ISBN Hint 1: to extract the rightmost digit of a number use: COMPUTE digit AS number MODULUS 10 Hint 2: to remove the rightmost digit of a number use: COMPUTE number AS number / 10 Hint 3: for full credit use a loop to compute the sum Assume the input value is a 9-digit positive integer. Also assume that the input is a valid ISBN number without the checksum digit.

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 03.07.2019 15:10, theamandawhite
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
image
Engineering, 04.07.2019 18:10, leomessifanboy678
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
image
Engineering, 04.07.2019 18:10, demarcuswiseman
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
Do you know the correct answer?
2.ISBN. The International Standard Book Number (ISBN) is a 10-digit code that uniquely specifies a b...

Questions in other subjects:

Konu
Chemistry, 24.05.2020 00:03
Konu
Mathematics, 24.05.2020 00:03