NUM_COLUMNS is set to 10 not 9. I'm still convinced that she mixed up the variables i & j.

The loops should be the following:
Code:
for(int i = 0; i < NUM_ROWS; i++)
     for(int j = 0; j < NUM_COLUMNS; i++)
          more code here
As long as you plan on using i in the first set of brackets you need to remember that it refers to the rows therefore in the for statement i needs to be compared with NUM_ROWS not NUM_COLUMNS.