Question: Write a pseudocode program which performs the following task: The program should ask the user to input 1 2 numbers as an ASCII string If

Write a pseudocode program which performs the following task:
The program should ask the user to input 12 numbers as an ASCII string
If the user input is q, the program should exit
Otherwise, treat the input as the first 12 digits of an ISBN-13 number
The program should check the users input and print a message stating whether or not it is a valid.
Next, the program should calculate the check digit for the ISBN-13 number.
The program should then output the full 13 digit ISBN-13 number.
The program should then repeat from step 1
Some of the steps your program will need to perform:
Convert the ASCII characters to numeric values in order to perform arithmetic on them.
Hint: Consult an ASCII table; what is the difference between the ASCII character 1, and the numeric value 1? Is this the same for all digits 1-9?
Check the user input for formatting errors:
Must have a length of exactly 12
Must contain only the digits 0-9, no symbols or letters
Implement the ISBN Check-Digit Calculation algorithm described above.

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!