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

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
You know the right answer?
2.ISBN. The International Standard Book Number (ISBN) is a 10-digit code that uniquely specifies a b...
Questions
question
Social Studies, 04.12.2019 21:31