/**
 * An account at a bank.
 */
public class Account {

  /**
   * The owner of the account.
   */
  private String owner;

  /**
   * The current amount of money in the account.
   */
  private double balance;

  /**
   * The minimum balance before service charges are laid.
   */
  private double minBalance;

  /**
   * A new Account with owner o, initial balance b, and minimum balance
   * min.
   */
  public Account(String o, double b, double min) {
  }
  
  /**
   * A new Account with owner o, initial balance b, and minimum balance
   * zero.
   */
  public Account(String o, double b) {
  }
  
  /**
   * A new Account with owner, initial balance, and minimum balance all
   * stored in info, separated by a comma and a space.
   */
  public Account(String info) {
    owner = info.substring(0, info.indexOf(", "));
    info = info.substring(2 + info.indexOf(", "));

    // Finish this. Try the two statements in the interactions pane if
    // you're not sure what they do!
  }
  
  /**
   * Return the owner of this account.
   */
  public String getOwner() {
    return null;
  }

  /**
   * Return the balance in this account.
   */
  public double getBalance() {
    return 0.0;
  }

  /**
   * Return the minimum balance of this account.
   */
  public double getMinBalance() {
    return 0.0;
  }

  /**
   * Return whether the balance is below the minimum balance.
   */
  public boolean belowMinBalance() {
    return false;
  }

  /**
   * Deposit m dollars into this account.
   */
  public void deposit(double m) {
  }

  /**
   * Withdraw m dollars from this account.
   */
  public void withdraw(double m) {
  }

  /**
   * Set the minimum balance to min.
   */
  public void setMinBalance(double min) {
  }

  /**
   * Return a String representation of this account, in the form
   *
   *   "owner: balance; minimum"
   *
   * where 'owner' is the name of the owner of this account, 'balance' is
   * the amount of money in this account, and 'minimum' is the minimum
   * balance of the account.
   */
  public String toString() {
    return null;
  }

}

