Another good use for mod

Posted by & filed under Computer Science, teaching.

Got to admit that mod is one of those topics that I have trouble getting across to my students. Not the idea of what it is and how to do it, but the purpose. The classic isOdd / isEven lab works. It can even be extended a bit into a isDivisible lab. And the College… Read more »