/1-Building-a-Currency-Converter

In this project, we'll explore creating a simple currency converter using Java, with a graphical interface built using Swing. The application allows users to convert between Indian Rupees (INR) and US Dollars (USD) with a straightforward and user-friendly design.

Primary LanguageJava

Currency Converter

Overview

This is a simple Java Swing application that allows users to convert currency between Indian Rupees (INR) and United States Dollars (USD). It provides a graphical user interface (GUI) for users to enter values and perform currency conversion.

Features

  • Converts INR to USD and vice versa based on predefined exchange rates.
  • Simple and user-friendly GUI for input and output.

Requirements

  • Java Development Kit (JDK) installed on your machine.
  • An Integrated Development Environment (IDE) such as IntelliJ IDEA or Eclipse.

How to Run

  1. Open the project in your preferred IDE.
  2. Locate the convert class and run the main method.
  3. The application window will appear, allowing you to enter values and perform conversions.

Usage

  1. Enter the amount in either the "Rupees" or "Dollars" text field.
  2. Click the "INR" button to convert from Rupees to Dollars.
  3. Click the "USD" button to convert from Dollars to Rupees.
  4. The converted amount will be displayed in the corresponding text field.
  5. Click the "Done with it!" button to close the application.

Note

  • The exchange rates are predefined and set as constants in the convert class. You can modify these rates based on the current market values.

Author

[Yashraj Tarte]

Feel free to explore and modify the code to suit your needs!