Question: Advanced level school Python programming. need helps tq. 5. In a country club, every member is issued a Membership Identification Number (MIN). MIN is a

 Advanced level school Python programming. need helps tq. 5. In a

Advanced level school Python programming. need helps tq.

5. In a country club, every member is issued a Membership Identification Number (MIN). MIN is a unique number comprises of 10 digits separated by two dashes. The last digit of MIN is a check digit using a modulus-10 system. Consider the MIN 456-789-5468. The check digit is calculated based on the left-most 9 digits. The first step is to double every alternate digits, starting with the second-last digit and moving left. Then sum all the digits, including both the unchanged digits as well as those doubled (e.g. 18 contributes 1+8 ). The following illustrates the process: The total sum 52 is then divided by 10 . If the remainder is 0 , then the check digit is 0 , otherwise, use 10 to subtract by the remainder to obtain the check digit. (a) Using pseudocode, write an algorithm to validate a MIN number. (b) Using the algorithm in part (a), determine whether the following MIN numbers are valid. (i) 4567890126 (ii) 9867450124 (c) The algorithm for verifying MIN number contains a few weaknesses. Identify a weakness and explain how it can be solved

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!