The convertEurToUsd method must multiply the euro amount by the exchange rate and return the result. ??????
package com.codegym.task.task03.task0303;
/*
Currency exchange
*/
public class Solution {
public static void main(String[] args) {
System.out.println( convertEurToUsd(100,.91));
System.out.println(convertEurToUsd(100,.91));
}
public static double convertEurToUsd(int eur, double exchangeRate) {
exchangeRate = 0.91;
double usd = eur * 0.91;
return (usd);
}
}
// The convertEurToUsd method must multiply the euro amount by the exchange rate and return the result.