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 numbers as an ASCII string
If the user input is q the program should exit
Otherwise, treat the input as the first digits of an ISBN 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 number.
The program should then output the full digit ISBN number.
The program should then repeat from step
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 and the numeric value Is this the same for all digits
Check the user input for formatting errors:
Must have a length of exactly
Must contain only the digits no symbols or letters
Implement the ISBN CheckDigit Calculation algorithm described above.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
