C++ ISBN Verify

Question

Ask the user to enter an ISBN Number. Store the ISBN into an array.

 

Determine if the check digit is correct.

 

Let the user know if its valid or not.

 

 

Ex/

Checking digit for 0-306-40615.

multiply and add 1*0 + 2*3 + 3*0 + 4*6 + 5*4 + 6*0 + 7*6 + 8*1 + 9*5 = 145

Then modulus  -> 145/11 => 2

 

if the result of mod is 10, the check digit is an X.

 

For this program, use loop to multiply and add digits.

use functions and arrays.

comments are required.

Details
Purchase An Answer Below

Have a similar question?