Path: utzoo!utgpu!watmath!julian!uwovax!4203_5067 From: 4203_5067@uwovax.uwo.ca (Mike MS D.) Newsgroups: can.general Subject: Re: Re: SIN Number Message-ID: <1181@uwovax.uwo.ca> Date: 4 Jan 89 10:22:23 GMT Lines: 45 Organisation: University of Western Ontario, Canada In article <4367@hcr.UUCP>, paul@hcr.UUCP (Paul Jackson) writes: > In article <420@perle.UUCP> dave@perle.UUCP (David LeReverend) writes: >>... The last (ninth) digit is a "check sum", and it can be >>determined using the 9 simple steps shown below. >>Steps: >>1) Use the even digits to form a four-digit number. >>2) Double this four-digit number. >>3) Sum the digits of the number determined in step 2. >>4) Use the odd digits (but not "C") to form another four-digit number. >>5) Sum the digits of the number determined in step 4. >>6) Add the results from steps 3 and 5. >>7) From the result of step 6, determine the next highest multiple of 10. >>8) Find the difference between the results from steps 6 and 7. >>9) The result of step 8 becomes the last (ninth) digit in the SIN. >>David LeReverend ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- > This algorithm did NOT work for my SIN (my arithmetic is admittedly > up to the usual standards in this society, but dc wouldn't lie to me, would > it?) Fortunately, this algorithm, which happened to be one of my second year programming assignments -- using VAX MACRO assembler!!, worked for my SIN. The purpose of the assignment was not to prove that the algorithm works for all SINs, but to give us the challenge of formatting the output (using assembly lang.!!) that shows each step of the numerical calculations ( steps 1 to 9 above). And we also had to show, by choosing random SINs, that our program was capable of "identifing" correct SINs from the incorrect ones. If my TA had known your SIN, which presumably is correct, and used it to test the "correctness" of my program, which most likely would have outputed "INCORRECT SIN", I would have gotten a "D" ( non-working program!). Miky_the_Dragon.