Search

TutorsOnSpot.com

## Online tutors ready to help 24/7 for any subject. first 60 minutes are free. No credit card required!

Get free 60 minutes online personalized tutoring session for any subject of all grades from top universities tutors! only sign up required!.

### Our promises:

• Free first 60 minutes tutoring!
• No credit card or payment required!
• Best Qualified Tutors!
• Variety of subjects!
• Personalized sessions!
• Privacy guaranteed!
• Tutoring Round the clock

# Write an algorithm that accepts an ISBN number and displays whether it is valid or not. An ISBN (International Standard Book Number) is a ten digit code which uniquely identifies a book. The first nine digits represent Group, Publisher and Title of the book and the last digit is used as a checksum (to check whether the given ISBN is valid). Each of the digits can take any value between 0 and 9. In addition, the last digit may also take a value X (stands for 10). To verify an ISBN, calculate 10 times the first digit, plus 9 times the second digit, plus 8 times the third and so on until we add 1 time the last digit. If the number 11 can divide the sum (no remainder), the code is a valid ISBN. [IMPORTANT: You must use a loop] For Example: 1. 0201103311 = 10*0 + 9*2 + 8*0 + 7*1 + 6*1 + 5*0 + 4*3 + 3*3 + 2*1 + 1*1 = 55 Since 11 divides 55, it is a valid ISBN. 2. 007462542X = 10*0 + 9*0 + 8*7 + 7*4 + 6*6 + 5*2 + 4*5 + 3*4 + 2*2 + 1*10 = 176 Since 11 divides 176, it is a valid ISBN. 3. 0112112425 = 10*0 + 9*1 + 8*1 + 7*2 + 6*1 + 5*1 + 4*1 + 3*4 + 2*2 + 1*5 = 71 Since 11 cannot divide 71, it is not a valid ISBN. ISBN Valid/invalid 0201103311 valid 107462542X 0112112424 12 A112112425 TEST CASES Example run 1 INPUT: GIVE ISBN: 0201103311 OUTPUT : VALID ISBN Example run 2 INPUT: GIVE ISBN: 007462542X OUTPUT : VALID ISBN Example run 3 INPUT: GIVE ISBN: 0112112425 OUTPUT : INVALID ISBN Complete the test case table. Write your algorithm below.

TutorsOnSpot.com

## Online tutors ready to help 24/7 for any subject. first 60 minutes are free. No credit card required!

Get free 60 minutes online personalized tutoring session for any subject of all grades from top universities tutors! only sign up required!.

TutorsOnSpot.com

## Guarantees

• The content written by our service is totally original and free from all kinds of plagiarism. We are a reputable brand that can never imagine sending plagiarized work to our customers. In case you are wondering, can someone write my research paper? We are always available to help you out.
• We always deliver the work to our customers on time. Our team is extremely disciplined and we respect our customers' provided deadline at all times. We also offer a money back guarantee if the customer is not happy with our service. Although to understand our money back policy you should check the term and condition section.
• Researching is extremely important for us. With all our writing services we make sure to carry out a great deal of research before putting words on paper. To answer all your concerns, our customer service team is active 24/7.
• Our primary goal is to make sure that our customers are satisfied with the service. If you are thinking that can someone please write my research paper then get in contact with us today and avail the best writing help you could ask for.