01 June 2008

NAMING A CHILD IS A VERY SERIOUS MATTER

var name1Array = new Array();
name1Array[0] = "Grace ";
name1Array[1] = "Iris ";
name1Array[2] = "Matilda ";
name1Array[3] = "Eleanor ";
name1Array[4] = "Lillian ";
name1Array[5] = "Dorothea ";

var name2Array = new Array();
name2Array[0] = "Grace ";
name2Array[1] = "Iris ";
name2Array[2] = "Matilda ";
name2Array[3] = "Eleanor ";
name2Array[4] = "Lillian ";
name2Array[5] = "Pearl ";
name2Array[6] = "Dorothea ";
name2Array[7] = "Rose ";

var name3Array = new Array();
name3Array[0] = "Knauer Terrell";
name3Array[1] = "Terrell Knauer";

var namesString = "";

for (var i = 0; i < name1Array.length; i++) {
  var myName = name1Array[i];
  for (var j = 0; j < name2Array.length; j++) {
    if (j != i) {
      namesString += myName + name2Array[j] + name3Array[0];
      namesString += myName + name2Array[j] + name3Array[1];
    }
  }
}

document.write(namesString);


[Thus I throw down the geeky father gauntlet...]

 

5 Comments:

Blogger Poking-Stick Man said...

Such a programmer you are....

I vote Eleanor Rose or Lillian Grace. I leave it to the two of you to fight over the surname issue.

6/01/2008 11:39 PM  
Blogger Dr. S said...

I think that naming her Dorothea would probably count as a Bad Idea. Not as bad as Gwendolen or Rosamund, of course, but still.

6/02/2008 7:59 PM  
Blogger Dr. S said...

Also, I think that Matilda Matilda might be AWESOME, but if you go with that one, you should probably start putting a quarter a day into the therapy fund.

6/04/2008 5:00 AM  
Blogger Thomas Knauer said...

Actually, this program would not generate Matilda Matilda -- that is what the "if (j != i)" conditional protects against, though I agree it would be nifty.

I am actually fond of Iris Iris, thus supplying an early teaching moment on the difference between nouns and adjectives.

[Yes, I am a geek]

6/04/2008 7:07 AM  
Blogger kelmeister said...

We're doing Patience Lucy, so those are out for you. DON'T EVEN THINK ABOUT USING IT!!

Of course, we're still a little ways from knowing if it's Patience or Phineas (Mr. P's got to get used to Phineas) but I thought I'd get your limit on while I had the chance.

7/08/2008 4:43 PM  

Post a Comment

<< Home