All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General > Word Problems
Boys' names (Posted on 2013-12-30) Difficulty: 2 of 5
Johan and Jonah are two boys' names (in the US) that are anagrams of one another.

Find at least three well known boys' names (in the US) that are anagrams of one another.

No Solution Yet Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution re: Names | Comment 9 of 10 |
(In reply to Names by Math Man)

Math Man's comment made me notice my original misinterpretation. What's wanted is not three pairs, but rather a set of three anagrams. Modifying my original program:

Second part of program is now:

OPEN "boyname2.txt" FOR INPUT AS #1

l$ = ""
DO
  pp$ = p$
  p$ = l$
  LINE INPUT #1, l$
  IF LEFT$(l$, 15) = LEFT$(p$, 15) AND LEFT$(l$, 15) = LEFT$(pp$, 15) THEN PRINT MID$(pp$, 16, 16); MID$(p$, 16, 16); MID$(l$, 16, 16)
LOOP UNTIL EOF(1)

resulting in:

MICHAEL         MICHALE         MICHEAL
LEANDRO         LEONARD         RENALDO
ANDRE           ARDEN           DAREN
ARNOLDO         ORLANDO         ROLANDO
ARNOLD          ROLAND          RONALD
JOESPH          JOSEPH          JOSPEH
LEON            NOEL            OLEN

and from the program using the larger data base:

bard            brad            darb
abeu            aube            beau
barny           bryan           byran
michael         michale         micheal
dane            dean            edan
anders          andres          sander
arnoldo         orlando         rolando
arnold          orland          roland
orland          roland          roldan
roland          roldan          ronald
andros          sandor          sandro
amery           aymer           mayer
janos           jason           jonas
biron           brion           robin
bryon           byron           norby
peirce          perice          pierce
ernest          nester          sterne
linoel          lionel          nollie
neils           niels           niles
elvin           levin           nevil
elroy           leroy           roley
moore           omero           romeo
hort            roth            thor

 


  Posted by Charlie on 2014-01-03 13:23:43
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2017 by Animus Pactum Consulting. All rights reserved. Privacy Information