Welcome to Bitcoin Exchange, where you'll simulate a cryptocurrency trading system using C++!
Your task is to implement a program that:
- Reads a data file of Bitcoin prices.
- Allows the user to query the value of Bitcoin on specific dates.
- Calculates the exchange value based on input amounts.
File | Description |
---|---|
BitcoinExchange.hpp |
Header file with class definitions. |
BitcoinExchange.cpp |
Implementation of Bitcoin logic. |
main.cpp |
Entry point for the program. |
- Build the project using
make
:make
- Run the program:
./ex00
- Efficient Lookups: Uses STL maps for fast date-to-price lookups.
- User-Friendly: Clear prompts and error handling for invalid inputs.
Enter a date (YYYY-MM-DD) and amount:
2023-03-15 | 5.5
On 2023-03-15, 5.5 BTC is worth $200,000.
- STL Maps 🗺️ for date-to-value mapping.
- String parsing 🧵 to handle user input and file data.
- File I/O 📁 for reading historical Bitcoin data.
Optimize your solution for handling large datasets!