5. Using C++ Write code to prompt the user for the first 9 digits of the ISBN and calculate the checksum digit and display the full ISBN 10. a. NOTE: If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention. b. HINT: You can use a combination of the % and / operator to pull the ISBN number apart. Consider 456 % 10 = 6 and 456 / 10 = 45. 6. Do not assume the user will enter valid data, meaning, if the user enters in negative numbers or non-numeric values you will need to discard the input and prompt the user again. Keep prompting the user for input until a valid positive integer is entered. 7. Remember, your program should read the input as an integer. (Do not forget the leading zero)

do not use usingnamespace



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *