Question: Python Programing 3. ISBN Check (10 points): ISBN stands for international standard book number, and is used to track orders of books from the book

Python Programing

Python Programing 3. ISBN Check (10 points): ISBN stands for international standard

3. ISBN Check (10 points): ISBN stands for international standard book number, and is used to track orders of books from the book publisher. The ISBN-10 standard consists of ten digits of numbers, say x0, 11, ...xg from most significant digit to the least. The digits of an ISBN-10 number satisfy the special property that the sum zo x 10+11 x 9+12 x 8... Ig X1 is always divisible by 11. The last digit, also referred to as the check digit, is carefully chosen such that the above sum is divisible by 11. Since we are doing arithmetic modulo 11, the last digit can take up to 11 different values the digits 0 to 9, and X (after the Roman numeral) to represent the value 10. For example, if the above sum for the first nine digits ends up being 122, then the last digit will be a X (note the capitalization) to make the total sum 132, which is divisible by 11. The check digit is useful in capturing errors due to manual entries when placing orders. As a note, this concept of using a check digit (also known as the parity bit when dealing with binary numbers) is used in error detection codes - to detect the reliability of information communicated between two systems in a network. Please write a program isbn-check.py that accepts a valid ISBN number and prints if it is valid or not. Two sample input and output are provided below. Sample Input and Output: Enter an ISBN number: 8180520781 ISBN number accepted. Enter an ISBN number: 8180220781 Invalid ISBN number. A part of the challenge in writing code is to be always weary of all the different types of input a user can make. For full credit, your program should cover all the different invalid inputs a user can provide with regards to ISBN numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!