Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need the code for this program in Java Language, please. Description: An ISBN-10 (International Standard Book Number) consists of 10 digits: ddzd3dadsdsd7dsd9d1o. The last digit,

image text in transcribedNeed the code for this program in Java Language, please.

Description: An ISBN-10 (International Standard Book Number) consists of 10 digits: ddzd3dadsdsd7dsd9d1o. The last digit, d1o, is a checksum, which is calculated from the other nine digits using the following formula: (d1 x 1 + d2 x 2 + d3 x 3 + d4 x 4 + d5 x 5 + d6 x 6 + d7x7+d8 x 8 + d9x9) % 11 If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention. Write a program that prompts the user to enter the first 9 digits and displays the 10-digit ISBN (including leading zeros). nput: Your program should prompt for input as shown below. Your program should terminate after a single input; this is showing 2 separate executions. (Note there is a return at the end of the last line; bold indicates output line(s)) Enter the first 9 digits of an ISBN as integer: 013601267 The ISBN-10 number is |36012671 Enter the first 9 digits of an ISBN as integer: 013031997 The ISBN-10 number is |3931997X Output: Output the solution as shown in the examples above

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

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions