Question: 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,
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, 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
Get step-by-step solutions from verified subject matter experts
