[Jprogramming] During lulls in the games can you simplify this code?

Don Kelly dhky at shaw.ca
Fri Jan 9 02:41:11 UTC 2015


How about this
(1+i.n) u table 1+i.m
this will remove * by 0 and 0% whatever as well as whatever %0
For division it might be practical to use 1r1+i.m)  if you wish to stay 
with fractions

(1+i.5) % table 1r1+i.10

┌─┬──────────────────────────────────────┐

│%│1 2   3   4   5   6   7   8   9   10 │

├─┼──────────────────────────────────────┤

│1│1 1r2 1r3 1r4 1r5 1r6 1r7 1r8 1r9 1r10│

│2│2 1 2r3   1r2 2r5 1r3 2r7 1r4 2r9 1r5 │

│3│3 3r2 1 3r4   3r5 1r2 3r7 3r8 1r3 3r10│

│4│4 2  4r3  1  4r5 2r3 4r7 1r2 4r9 2r5 │

│5│5 5r2 5r3 5r4   1 5r6 5r7 5r8 5r9 1r2 │

└─┴──────────────────────────────────────┘
While the table above looks good in J - it doesn't look good here 
without fooling around. I expect that it could be formatted for appearance.

It seems to me that table as is works quite nicely except for those 
pesky negative numbers -something that could be left in and explained to 
students as something to be dealt with  in the future-low temperatures 
or if the main floor of a bu9ilding is called level 0, first floor is 
level 1 -then basement is level -1.

One thing that I learned when doing some volunteer tutoring is that the 
students who needed it the most were the ones most dependent on printed 
tables in later grades (they had been passed on without actually 
learning the fundamentals.

Don Kelly


On 06/01/2015 8:00 AM, Linda Alvord wrote:
> Actually I am only trying to show all the facts that a student in Grade 2 should understand and ultimately learn.
>
> I hope that a chart that shows all that they need to know will make the task of learning the facts less  daunting.
> I'm only getting to develop multiplication and division in Grade 3.  I don't even know when they will see a negative number.  Maybe the temperatures will make  them a little sooner than expected.
>
> Linda
>
>



More information about the Programming mailing list