My program works fine, in fact, it correctly converts euros to US dollars. However, I didn't pass the requirements which is when I analyze my code, it does what the it does. If there's a minor error, please let me know.
package com.codegym.task.task03.task0303;
/*
Currency exchange
*/
public class Solution {
public static void main(String[] args) {
//write your code here
System.out.println(convertEurToUsd(5, 1.16279069767));
System.out.println(convertEurToUsd(2, 1.16279069767));
}
public static double convertEurToUsd(double eur, double exchangeRate) {
//write your code here
double usd = eur * exchangeRate;
return usd;
}
}