/**
 *  
 * Class AUD takes an amount of money and converts it to
 * Australian dollars.
 *
 * @author  Daniel Burgner
 * @version 1.0
 * @date    02.15.2002
 *
 */
import java.lang.*;

public class AUD implements Conversion {

	/* dAUDRate is the conversion rate to Australian dollars. */
	protected double dAUDRate;

	/**
	 * Calculates the result in Australian dollars.
	 * @param  nA - The amount of money to be converted.
	 * @return the result of the calculation - a double
	 */
	public double result(double dA) {
		return (dAUDRate * dA);
	}

	/**
	 * Creates a new AUD object that takes in a String
	 * representing the string value of the conversion
	 * rate.
	 * @param strR - The string representation of the
	 *               conversion rate.
	 */
	public AUD(String strR) {
		dAUDRate = Double.valueOf(strR).doubleValue();
	}
}
