项目作者: simplonco

项目描述 :
Write a program that generates the lyrics of the song 'I Know an Old Lady Who Swallowed a Fly'
高级语言: JavaScript
项目地址: git://github.com/simplonco/js-food-chain.git
创建时间: 2016-04-15T16:21:49Z
项目社区:https://github.com/simplonco/js-food-chain

开源协议:

下载


Write a program that generates the lyrics to the song
“I know an old lady who swallowed a fly”. While you could
copy/paste the lyrics, or read them from a file, this
problem is much more interesting if you approach it
algorithmically.

This is a cumulative song of unknown origin.

This is one of many common variants.

  1. I know an old lady who swallowed a fly.
  2. I don't know why she swallowed the fly. Perhaps she'll die.
  3. I know an old lady who swallowed a spider.
  4. It wriggled and jiggled and tickled inside her.
  5. She swallowed the spider to catch the fly.
  6. I don't know why she swallowed the fly. Perhaps she'll die.
  7. I know an old lady who swallowed a bird.
  8. How absurd to swallow a bird!
  9. She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.
  10. She swallowed the spider to catch the fly.
  11. I don't know why she swallowed the fly. Perhaps she'll die.
  12. I know an old lady who swallowed a cat.
  13. Imagine that, to swallow a cat!
  14. She swallowed the cat to catch the bird.
  15. She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.
  16. She swallowed the spider to catch the fly.
  17. I don't know why she swallowed the fly. Perhaps she'll die.
  18. I know an old lady who swallowed a dog.
  19. What a hog, to swallow a dog!
  20. She swallowed the dog to catch the cat.
  21. She swallowed the cat to catch the bird.
  22. She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.
  23. She swallowed the spider to catch the fly.
  24. I don't know why she swallowed the fly. Perhaps she'll die.
  25. I know an old lady who swallowed a goat.
  26. Just opened her throat and swallowed a goat!
  27. She swallowed the goat to catch the dog.
  28. She swallowed the dog to catch the cat.
  29. She swallowed the cat to catch the bird.
  30. She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.
  31. She swallowed the spider to catch the fly.
  32. I don't know why she swallowed the fly. Perhaps she'll die.
  33. I know an old lady who swallowed a cow.
  34. I don't know how she swallowed a cow!
  35. She swallowed the cow to catch the goat.
  36. She swallowed the goat to catch the dog.
  37. She swallowed the dog to catch the cat.
  38. She swallowed the cat to catch the bird.
  39. She swallowed the bird to catch the spider that wriggled and jiggled and tickled inside her.
  40. She swallowed the spider to catch the fly.
  41. I don't know why she swallowed the fly. Perhaps she'll die.
  42. I know an old lady who swallowed a horse.
  43. She's dead, of course!