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...]
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:
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.
I think that naming her Dorothea would probably count as a Bad Idea. Not as bad as Gwendolen or Rosamund, of course, but still.
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.
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]
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.
Post a Comment
<< Home