Wednesday, October 28, 2015

SOFT6008 Class 07.4

We looked at some more checksum calculations for user inout validation and I talked a bit about how one might code them.


When discussing the PPSN I drew students' attention to the relationship between the loop counter (n) and the multiplier.


nmultiplier
08
17
26
35
44
53
62


The multiplier is 8-n


When discussing the henkilötunnus I wasn't clear on whether the start of the list of check letters was considered 0 or 1. It's 0. So 311280-999J is a valid henkilötunnus.
I have updated the slides so this is clearer.

No comments: