Practice: Intefaces

Take out a piece of paper. We’ll be programming on paper.

Problem 1

Create a class Student with an instance variable grades of type array of doubles. The Student class must implement the following interface.

public interface Averageable {
  /**
   * Returns the average value.
   */
  public double average();
}

Problem 2

Modify the Student class to also implement the following interface.

public interface Minable {
  /**
   * Returns the minimum value.
   */
  public double minimum();
}

Show me your code before you leave