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

public class EUR implements Conversion {

	/* dEURRate is the conversion rate to Euros. */
	protected double dEURRate;

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

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