felh (Business: check ISBN-10) Question 1a An ISBN-10 (Intermational Standard Book Number) consists of 10 digits: dididjddgded,d dad1o. The last digit, d1o, is a checksum, which is čalculated from the other nine digits using the following formula: (d, x1+dz x 2 + d, x 3+ d, X'4 + de X5 + de X 6 + d, × 7 + dg × 8+ dy X 9) % 11 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 fiest 9 digits of an SBN-10 as a string: 013601267 The ISBN-10 number is: 0136012671 Show transcribed image text

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
icon
Concept explainers
Question
telk
(Business: check ISBN-10)
Question 11
An ISBN-10 (International Standard Book Number) consists of 10 digits:
dididadadsded,d dad1o. The last digit, d10, is a checksum, which is čalculated from the other
nine digits using the following formula:
(d, x1+dz x 2 + d, X 3+ d, X'4 + de X5 + de X 6 + d, × 7 + dg × 8+ dy X 9) % 11
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 SBN-10 as a string: 013601267
The ISBN-10 number is: 01360112671
Show transcribed image text
Transcribed Image Text:telk (Business: check ISBN-10) Question 11 An ISBN-10 (International Standard Book Number) consists of 10 digits: dididadadsded,d dad1o. The last digit, d10, is a checksum, which is čalculated from the other nine digits using the following formula: (d, x1+dz x 2 + d, X 3+ d, X'4 + de X5 + de X 6 + d, × 7 + dg × 8+ dy X 9) % 11 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 SBN-10 as a string: 013601267 The ISBN-10 number is: 01360112671 Show transcribed image text
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT