The Name Game: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "{{draft task}} Write a program that accepts a name as input and outputs the lyrics to the novelty song "The Name Game" Using the name Katie as an example, the song follows th...")
 
No edit summary
Line 8: Line 8:
Fee fi mo-matie
Fee fi mo-matie
Katie!
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"

Revision as of 02:53, 24 March 2018

The Name Game is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Write a program that accepts a name as input and outputs the lyrics to the novelty 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"