Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON PLEASE (Business: check ISBN-13) ISBN-13 is a new standard for indentifying books. It uses 13 digits d1d2d3d4d5d6d7d8d910d11d12d13. The last digit 013 is a

IN PYTHON PLEASE image text in transcribed
(Business: check ISBN-13) ISBN-13 is a new standard for indentifying books. It uses 13 digits d1d2d3d4d5d6d7d8d910d11d12d13. The last digit 013 is a checksum, which is calculated from the other digits using the following formula 10 - (01 + 3*d2 + d3 +3d4 +d5 +3*d6 + d7 + 3*d8 + d9 + 3*d10+d11 +3d12) % 10 If the checksum is 10, replace it with 0. Your program should read the input as a string. Display "incorrect input" if the input is incorrect Sample Run 1 Enter the first 12 digits of an ISBN-13 as a string: 978013213080 The ISBN-13 number is 9780132130806 Sample Run 2 Enter the first 12 digits of an ISBN-13 as a string: 978013213079 The ISBN-13 number is 9780132130790 if you get a logical or runtime error, please refer https://liangpy pearsoncmg.com/faq html. 18 19 20 21 - 22 23 24 25 26 27 28 29- 30 31 32 5-s+int(n[1])od ven numbers vaatle else: tuse el block for frumbers s=s+int(n[1])*3 tips the distidth and add into me Ses%20calculate the remainder von 5-10-susuttract the reader et and hold its value if 5--10: user to checks variable watequal to 10 s=uses variable to as the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions