Question: Need some help on this in java Write a well - documented ( commented ) program, ISBN , that takes a 9 - digit integer

Need some help on this in java Write a well-documented (commented) program, ISBN, that takes a 9-digit integer as a command-line argument, computes the checksum, and prints the ISBN number. [MO4.1]
Note: You should use Javas String data type to implement it. The International Standard Book Number (ISBN) is a 10-digit code that uniquely specifies a book. The rightmost digit is a checksum digit that can be uniquely determined from the other 9 digits, from the condition that d1+2d2+3d3+...+10d10 must be a multiple of 11(here di denotes the ith digit from the right). The checksum digit d1 can be any value from 0 to 10. The ISBN convention is to use the character X to denote 10.
The checksum digit corresponding to 032149805 is 4 since 4 is the only value of x between 0 and 10(both inclusive), for which 100+93+82+71+64+59+48+30+25+1x is a multiple of 11.
Sample runs would be as follows.
>java ISBN 013376940
The ISBN number would be 0133769402
>java ISBN 013376947
The ISBN number would be 013376947X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!