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

public class GBP implements Conversion {

	/* dGBPRate is the conversion rate to British pounds. */
	protected double dGBPRate;

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

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