Old MacDonaldfarm

Had some code!

Old MacDonald (~2004)

The Learning Station has some great kid's music. Little did they know they'd be inspiring some code writing!

Can you write some (efficient) code to generate the song's lyrics?!

In case you need them, here are the lyrics we want to generate: (of course, we need more animals! but watch out for the fox!)

Old MacDonald had a farm, EE-I-EE-I-O.
And on his farm he had a horse, EE-I-EE-I-O.  
With a neigh-neigh here, and a neigh-neigh there, 
Here a neigh, there a neigh, everywhere a neigh-neigh.
Old MacDonald had a farm, E-I-E-I-O.

Old MacDonald had a farm, EE-I-EE-I-O.
And on his farm he had a cow, EE-I-EE-I-O.  
With a moo-moo here, and a moo-moo there, 
Here a moo, there a moo, everywhere a moo-moo!   
A neigh-neigh here, a neigh-neigh there, 
Here a neigh, there a neigh, everywhere a neigh-neigh!
Old MacDonald had a farm, EE-I-EE-I-O.

Old MacDonald had a farm, EE-I-EE-I-O. 
And on his farm he had a sheep, EE-I-EE-I-O.  
With a baa-baa here, and a baa-baa there, 
Here a baa, there a baa, everywhere a baa-baa! 
A moo-moo here, a moo-moo there, 
Here a moo, there a moo, everywhere a moo-moo!  
A neigh-neigh here, a neigh-neigh there, 
Here a neigh, there a neigh, everywhere a neigh-neigh!
Old MacDonald had a farm, EE-I-EE-I-O.

Old MacDonald had a farm, EE-I-EE-I-O. 
And on his farm he had a hen, EE-I-EE-I-O. 
With a cluck-cluck here, and a cluck-cluck there, 
Here a cluck, there a cluck, everywhere a cluck-cluck! 
A baa-baa here, a baa-baa there, 
Here a baa, there a baa, everywhere a baa-baa!
A moo-moo here, a moo-moo there, 
Here a moo, there a moo, everywhere a moo-moo!  
A neigh-neigh here, a neigh-neigh there, 
Here a neigh, there a neigh, everywhere a neigh-neigh!
Old MacDonald had a farm, EE-I-EE-I-O.

Old MacDonald had a farm, EE-I-EE-I-O. 
And on his farm he had a duck, EE-I-EE-I-O. 
With a quack-quack here, and a quack-quack there, 
here a quack, there a quack, everywhere a quack-quack! 
A cluck-cluck here,  a cluck-cluck there, 
Here a cluck, there a cluck, everywhere a cluck-cluck!
A baa-baa here, a baa-baa there, 
Here a baa, there a baa, everywhere a baa-baa! 
A moo-moo here, a moo-moo there, 
Here a moo, there a moo, everywhere a moo-moo! 
A neigh-neigh here, a neigh-neigh there, 
Here a neigh, there a neigh, everywhere a neigh-neigh!
Old MacDonald had a farm, EE-I-EE-I-O. 
Old MacDonald had a farm, EE-I-EE-I-O. 
EE-I-EE-I-O.
                        

Movie clip is only available in larger viewports
On some mobile devices, rotating to landscape will allow viewing.