-
Currency Conversion: Allows the user to enter the amount in a source currency and select the destination currency to get the converted amount.
-
Automatic Update: Implements the Observer pattern to automatically update the interface when conversion data changes.
-
User-Friendly GUI: Developed with Java Swing, the user interface is easy to understand and use.
The code follows the MVC pattern for clear and modular organization:
-
Model: Contains business logic and manages exchange rates. The
MoneyCalculator
class performs conversion calculations and maintains the history. -
View: Represents the user interface. The
MoneyDisplayView, MoneyView, and MoneyEditView
classes handle the presentation and data input for conversions. -
Controller: Manages interactions between the user and the application. The
MoneyEditController
class handles user events and updates the model and view accordingly.
The Observer pattern is used to allow the view to update automatically when exchange rates change.
-
An API is used to obtain updated exchange rates.
-
Relevant components are located in the WebService package.
- Java JDK 8 or higher.
- Java-compatible IDE (NetBeans 7-8 versions).
- Clone the repository:
git clone https://github.com/AlejandroDavidArzolaSaavedra/MoneyCalculator
- Open the project in your preferred IDE.
- Run the
MoneyCalculatorController
class to start the application.
Contributions are appreciated! If you find bugs or have suggested improvements, create an issue or send a pull request🚀.