This problem is slightly more difficult than the above problem. This one requires a data type that stores 10 digits. Background Publishers and bookstores use a number system called the International Standard Book Number (ISBN) system to identify books. At the start of publication, each book is assigned a unique ISBN. An ISBN, once assigned, can never be re-used. Click here for detailed information on this numbering system. An ISBN consists of exactly 10 digits. The rightmost digit is the check digit. The check digit is validated modulo 11. • multiply each digit from the first to the ninth by a weight from 10 to 2 respectively (the first digit by 10, the second by 9,.., the ninth by 2). • the sum of the products plus the check digit should be divisible without remainder by 11. • if there is a remainder, the whole number is not a valid ISBN Specifications Design a program that validates an ISBN. Your program keeps accepting a whole number and determining if that whole number is a valid ISBN. Your program terminates when the user enters 0 as the whole number. The output from your program looks something like
ISBN
This problem is slightly more difficult than the above problem. This one requires a data type that
stores 10 digits.
Background
Publishers and bookstores use a number system called the International Standard Book Number (ISBN)
system to identify books. At the start of publication, each book is assigned a unique ISBN. An ISBN,
once assigned, can never be re-used. Click here for detailed information on this numbering system.
An ISBN consists of exactly 10 digits. The rightmost digit is the check digit. The check digit is
validated modulo 11.
• multiply each digit from the first to the ninth by a weight from 10 to 2 respectively (the first
digit by 10, the second by 9,.., the ninth by 2).
• the sum of the products plus the check digit should be divisible without remainder by 11.
• if there is a remainder, the whole number is not a valid ISBN
Specifications
Design a program that validates an ISBN. Your program keeps accepting a whole number and
determining if that whole number is a valid ISBN. Your program terminates when the user enters 0 as
the whole number.
The output from your program looks something like
Trending now
This is a popular solution!
Step by step
Solved in 2 steps