@@ -0,0 +1,1932 @@
+import java.util.ArrayList;%0A%0Apublic class Human extends Mammal %7B%0A  private double money;%0A  private double dogFood;%0A  private ArrayList%3CDog%3E dogs;%0A  %0A  public Human(String name, double weight, char gender) %7B%0A%09super(name, weight, gender);%0A%09%0A%09// 50 units of money and dog food are assigned to each new human...%0A%09money = 50;    %0A%09dogFood = 50;%0A%09%0A%09dogs = new ArrayList%3CDog%3E();%0A  %7D%0A  %0A  public void addDog(Dog companion) %7B%0A    dogs.add(companion); // (Wo)man's best friend!%0A  %7D%0A  %0A  public String getName() %7B%0A    return name;%0A  %7D%0A  %0A  public void walks() %7B%0A%09// Increase dog's fun, but makes dog more hungry and dirty%0A    for (int i = 0; i %3C dogs.size(); i++) %7B%0A      dogs.get(i).setFun(dogs.get(i).getFun() + 5);%0A      dogs.get(i).setHunger(dogs.get(i).getHunger() + 3);%0A%09  dogs.get(i).setCleanliness(dogs.get(i).getCleanliness() - 2);%0A    %7D%0A  %7D%0A  %0A  public void feeds() %7B%0A%09// Use dog food to lower dogs' hunger%0A    for (int i = 0; i %3C dogs.size(); i++) %7B%0A%09  dogFood--;%0A%09  dogs.get(i).setHunger(dogs.get(i).getHunger() - 4);%0A%09  dogs.get(i).setCleanliness(dogs.get(i).getCleanliness() - 7);%0A%09%7D%0A  %7D%0A  %0A  public void bathes() %7B%0A%09// Cleaner dog, but dog isn't having fun%0A    for (int i = 0; i %3C dogs.size(); i++) %7B%0A      dogs.get(i).setCleanliness(100);%0A      dogs.get(i).setFun(dogs.get(i).getFun() - 5);%0A    %7D%0A  %7D%0A%0Apublic void buyFood() %7B%0A  money -= 10;%0A  dogFood += 30;%0A%7D%0A%0Apublic void passTheTime() %7B%0A  // Make money, dog has less fun, dog more hungry%0A  %0A  money += 50;%0A  %0A  for (int i = 0; i %3C dogs.size(); i++) %7B%0A    dogs.get(i).setFun(dogs.get(i).getFun() - 8);%0A%09dogs.get(i).setHunger(dogs.get(i).getHunger() +6);%0A  %7D%0A%7D%0A  %0A  @Override%0A  public String toString() %7B%0A%09String dogsString = %22%22; // store toString() return for each dog %0A%09%0A%09for (int i = 0; i %3C dogs.size(); i++) %0A%09%09dogsString += dogs.get(i).toString() + %22 %22;%0A%09%0A    return super.toString() + %22 money: %22 + money + %22 dog food: %22 + dogFood +%0A      %22 dogs: %22 + dogsString;%0A  %7D%0A  %0A%7D%0A

Add Human.java