Answer
The answer and procedures of the exercise are attached in the following archives.
Step-by-step explanation:
You will find the procedures, formulas or necessary explanations in the archive attached below. If you have any question ask and I will aclare your doubts kindly.
Answer:
<em>Yes</em><em> </em><em>they</em><em> </em><em>are</em><em> </em><em>correct</em><em>.</em><em> </em><em>welcome</em><em>.</em><em>.</em><em>.</em><em>.</em>
Answer:
PYTHON CODE:
str = input("Enter the first 9 digits of an ISBN-10 as a string : ") # user input
i = 1
checksum = 0 # for total sum
while i < 10:
c = int(str[i - 1]) # getting every digit of the ISBN
c = c * i
checksum += c
i=i+1
checksum=checksum % 11 # getting the last digit of ISBN
ch=checksum
if checksum==10: # if the last digit is 10 then change it to X
ch="X"
print("The Complete 10-Digit ISBN is : ",end="")
print(str,end="") # displaying the 9 digit of ISBN
print(ch) # appending the last digit of ISBN
Explanation: