@ -12,4 +12,14 @@ float toGBP(float euro) {
float GBP = euro * CURRENT_GBP_RATE_OF_ONE_EURO;
return GBP;
}
float convert(float euro, int newCurrencyCode) {
switch(newCurrencyCode) {
case 1:
return ( euro * CURRENT_USD_RATE_OF_ONE_EURO );
case 2:
return ( euro * CURRENT_GBP_RATE_OF_ONE_EURO );
return -1;