From 7309447c03aa84d4e0b6caba24c5d3fffc8d4624 Mon Sep 17 00:00:00 2001 From: Shivam Chaudhary Date: Thu, 9 Feb 2023 15:49:22 +0100 Subject: [PATCH] Add relevant constants for USD and GBP --- src/currencyExchange.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/currencyExchange.h b/src/currencyExchange.h index fe80c35..6629fcc 100644 --- a/src/currencyExchange.h +++ b/src/currencyExchange.h @@ -1,7 +1,9 @@ #include -#define CURRENT_USD_RATE_OF_ONE_EURO 1.07 -#define CURRENT_GBP_RATE_OF_ONE_EURO 0.89 +#define USD_RATE_OF_ONE_EURO 1.07 +#define GBP_RATE_OF_ONE_EURO 0.89 -float toUSD(float euro); -float toGBP(float euro); \ No newline at end of file +#define CURRENCY_CODE_USD 1 +#define CURRENCY_CODE_GBP 2 + +float convert(float euro, int newCurrencyCode); \ No newline at end of file