/*This program looks the same, but would run differently
  try it if you're not convinced!*/

public class Student3Main {
  public static void main(String [] args) {

    Student3 aStudent = new Student3("Bart");
    Student3 bStudent = new Student3("Lisa");

    //notice these method takes NO parameters 
    //(and yet they're "adding" some information to the object
    //since you've seen the class definitions, you should know 
    //how the student quiz scores are being updated

    aStudent.addQuiz();
    bStudent.addQuiz();
    bStudent.addQuiz();

    System.out.println("The quiz average for: " + aStudent.getName()
                        + " is: " + aStudent.getAverageScore());    

    System.out.println("The quiz average for: " + bStudent.getName()
                        + " is: " + bStudent.getAverageScore());

  }
}
