// CS101
// 
// OldMacDonald.java 
// Prints out the lyrics for the song (incomplete)

public class OldMacDonald {
  
  public static void main (String[] args) {
    System.out.println("Old MacDonald had a farm. ");
    printChorus();
    System.out.println("And on that farm he had some pigs. ");
    printChorus();
    System.out.println("With an oink-oink here, and an oink-oink there.");
    System.out.println("Here an oink, there an oink, everywhere an oink-oink.");
    System.out.println("Old MacDonald had a farm. ");
    printChorus();

    // test a method that takes parameters
    printAnimalSound("chicken", "cluck");
    printAnimalSound("dog", "bark");
  }
 
  public static void printChorus() {
    System.out.println("E-I-E-I-O.");    
  }

  public static void printAnimalSound(String animal, String sound) {
    System.out.println("A " + animal + " says " + sound);
  }
  
}