oldMacDonald(animal, voice)
to help your program to print the lyrics for five different animals, similar
to the example verse below.
Old MacDonald had a farm, E-I-E-I-O! And on that farm he had a cow, E-I-E-I-O! With a moo, moo here and a moo, moo there. Here a moo, there a moo, everywhere a moo, moo. Old MacDonald had a farm, E-I-E-I-O! |
Animal | Voice |
---|---|
cow | moo |
horse | heigh |
pig | oink |
sheep | baaa |
duck | quack |