public static void main(String[] args) {
// main method must call the convertEurToUsd method twice with any arguments.
large = convertEurToUsd (50, 1.10);
small = convertEurToUsd (10, 1.20);
return convertEurToUsd;
System.out.println(large);
System.out.println(small);
// System.out.println (convertEurToUsd(arguments) );
// System.out.println (convertEurToUsd(arguments) );
}
public static double convertEurToUsd(int eur, double exchangeRate) {
int eur;
int exchangeRate;
// int afterXchange;
int convertEurToUsd = eur * exchangeRate;
}
}
Help --- Currency exchange --- code is trash ... unsure & stuck
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Thomas
19 May 2019, 06:01
This code seems happier ... but no good
0
Guadalupe Gagnon
12 November 2019, 16:52
what does the task say to do?
0
Thomas
19 May 2019, 05:49
Seems happier Java --- but still crashes ... sad (
0