'''
Created on Jan 17, 2015

@author: Susan
'''
def SayEIEIO():
    '''
    say the cutsie eieio
    '''
    print "Ei-Igh-Ei-Igh-Oh"
        
def Refrain():
    '''
    print the refrain, the common line
    '''
    print "Old MacDonald had a farm,", 
    SayEIEIO()
    
def HadAnimal(creature):
    '''
    prints the line in the verse with the creature
    '''
    print "And on his farm he had a " + creature +",", 
    SayEIEIO()
    
def WithSound(sound):
    '''
    prints the sound lines in old MacDonald
    '''
    sound2 = sound + " " + sound
    print "With a " + sound2 + " here,",
    print "and a " + sound2 + " there"
    print "Here a " + sound + ", there a " + sound + ",", 
    print "everywhere a " + sound2 
    
def OldMac(animal, sound):
    '''
    prints one verse of Old MacDonald
    '''
    Refrain()
    HadAnimal(animal)
    WithSound(sound)
    Refrain()


  
if __name__ == '__main__':
    '''
    This is the main where it all starts
    This prints three verses of Old Mac
    '''
    OldMac("pig", "Oink")
    print
    OldMac("cow", "Moo")
    print
    OldMac("dukie", "Beat UNC")