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: <1191@uwovax.uwo.ca> Date: 4 Jan 89 11:39:22 GMT Lines: 47 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. >>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 !!, worked for my SIN. The purpose of the assignment was not to show that the algorithm works for all SINs, but to give the class the challenge of formatting the output (using assembly lang.!!) that shows each step of the numerical calculations, simmilar to steps 1 to 9 above. And everybody also had to show, by choosing random SINs, that her/his program was capable of "identifing" correct SINs from the incorrect ones. If my TA had known your SIN, which presumably is legal and used it to test the "correctness" of my program, which most likely would have outputed "ILLEGAL SIN", he would have given a "D" ( non-working program!). signed by: Miky_the_Dragon. Have a nice day please!