The Name Game: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ |
{{task}} |
||
Write a program that accepts a name as input and outputs the lyrics to the |
Write a program that accepts a name as input and outputs the lyrics to the Shirley Ellis song "The Name Game" |
||
Using the name Katie as an example, the song follows this pattern: |
Using the name Katie as an example, the song follows this pattern: |
Revision as of 02:56, 24 March 2018
![Task](http://static.miraheze.org/rosettacodewiki/thumb/b/ba/Rcode-button-task-crushed.png/64px-Rcode-button-task-crushed.png)
You are encouraged to solve this task according to the task description, using any language you may know.
Write a program that accepts a name as input and outputs the lyrics to the Shirley Ellis song "The Name Game"
Using the name Katie as an example, the song follows this pattern:
Katie, Katie, bo-batie, Bonana-fanna fo-fatie Fee fi mo-matie Katie!
A verse can be created for any name, with X as the name and Y as the name without the first consonant sound (if it begins with a consonant), as follows:
(X), (X), bo-b (Y) Bonana-fanna fo-f (Y) Fee fi mo-m (Y) (X)!
And if the name starts with a b, f, or m, that sound simply is not repeated. For example: Billy becomes "Billy Billy bo-illy"; Fred becomes "bonana fanna fo-red"; Marsha becomes "fee fi mo-arsha"