public float convertCurrencyToDollars(float amount , String unitOfCurrency){
    if ("krona".equalsIgnoreCase(unitOfCurrency)) {
    return convertKronorToDollars(amount);
    } 
    else {
      return convertEurosToDollars(amount);
     }
    }