Program 1

Program One
Due: Mon 9/8/2014

Write a program that produces as output the lyrics of the song "There was an Old Lady who Swallowed a Fly."  Use methods for each verse and the refrain.  Here's the song's complete lyrics:


There was an old lady who swallowed a fly.
I don't know why she swallowed a fly.
Perhaps she'll die.

There was an old lady who swallowed a spider.
It wiggled and jiggled and tickled inside her.
She swallowed the spider to catch the fly.
I don't know why she swallowed a fly.
Perhaps she'll die.

There was an old lady who swallowed a bird.
How absurd! She swallowed a bird.
She swallowed the bird to catch the spider -
It wiggled and jiggled and tickled inside her.
She swallowed the spider to catch the fly.
I don't know why she swallowed a fly.
Perhaps she'll die.

There was an old lady who swallowed a dog.
What a hog! She swallowed a dog.
She swallowed the dog to catch the cat.
She swallowed the cat to catch the bird.
She swallowed the bird to catch the spider -
It wiggled and jiggled and tickled inside her.
She swallowed the spider to catch the fly.
I don't know why she swallowed a fly.
Perhaps she'll die.

There was an old lady who swallowed a cow.
I don't know how she swallowed a cow.
She swallowed the cow to catch the dog.
She swallowed the dog to catch the cat.
She swallowed the cat to catch the bird.
She swallowed the bird to catch the spider -
It wiggled and jiggled and tickled inside her.
She swallowed the spider to catch the fly.
I don't know why she swallowed a fly.
Perhaps she'll die.

There was an old lady who swallowed a horse.
She died, of course!

No comments:

Post a Comment