Advanced level school Python programming. Need help.
Check digit is one technique of data validation.
(i) Give two other techniques of data validation.
(ii) With one example of data verification, explain the difference between data verification and data validation.
A student ID consists of 5 digits and a check digit.
(iii) One way to calculate the check digit is to use the unit's digit of the sum of all 5 digits. For example, suppose the 5 digits are 50879. Since 5+0+8+7+9=29, the check digit is 9, and the student ID is 508799. Explain, with two examples, why this method is inadequate.
The check digit is calculated from the 5 digits using the modulus 11 system. It can be digits 0-9 or character X.
(iv) Showing your working, determine the check digit for 30526.
(v) Write an algorithm to check if a student ID is valid.
(vi) A function is designed to read a student ID and determine if it is valid. State the data types of its input parameter and justify.