IN PYTHON PLEASE!!! An ISBN-10 (International Standard Book Number) consists of 10 digits: . The last digit, , is a checksum, which is calculated from the other nine digits using the following formula: If the checksum is 10, the last digit is denoted as X, according to the ISBN convention. Write a program that prompts the user to enter the first 9 digits as a string and displays the 10-digit ISBN (including leading zeros). Your program should read the input as a string.   Here are sample runs: Enter the first 9 digits of an ISBN-10 as a string: 013601267 The ISBN-10 number is: 0136012671

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 9PE
icon
Related questions
icon
Concept explainers
Question

IN PYTHON PLEASE!!!

An ISBN-10 (International Standard Book Number) consists of 10 digits: . The last digit, , is a checksum, which is calculated from the other nine digits using the following formula:

If the checksum is 10, the last digit is denoted as X, according to the ISBN convention. Write a program that prompts the user to enter the first 9 digits as a string and displays the 10-digit ISBN (including leading zeros). Your program should read the input as a string.

 

Here are sample runs:

Enter the first 9 digits of an ISBN-10 as a string: 013601267

The ISBN-10 number is: 0136012671

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,