Skip to content

Conversation

@BrahmajitMohapatra
Copy link
Contributor

Key Points:

• Input Handling: The program takes the base currency and the currency to exchange into from the user. If the input is blank, the loop exits.
• Cache: The program uses a cache to store exchange rates for USD and EUR. If the rate is already in the cache, it retrieves it; otherwise, it fetches the rate from the API.
• Exchange Rate API: The rates are fetched from floatrates.com in JSON format.
• Currency Conversion: The amount is exchanged based on the cached or newly fetched rate, and the result is displayed.

Key Points:

•	Input Handling: The program takes the base currency and the currency to exchange into from the user. If the input is blank, the loop exits.
•	Cache: The program uses a cache to store exchange rates for USD and EUR. If the rate is already in the cache, it retrieves it; otherwise, it fetches the rate from the API.
•	Exchange Rate API: The rates are fetched from floatrates.com in JSON format.
•	Currency Conversion: The amount is exchanged based on the cached or newly fetched rate, and the result is displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants