Currency Converter Project

 

Currency Converter Project – Built by Me

Have you ever wondered how much your local currency is worth in dollars, euros, or any other foreign currency? That’s exactly the problem I wanted to solve when I created my Currency Converter project.

In today’s world, where online shopping, traveling, and freelancing are becoming more common, converting money into different currencies has become a daily need. So, I thought of building my own tool to make this process simple, fast, and accurate.




🔹 What is a Currency Converter?

A currency converter is a program that allows users to convert the value of one currency into another. For example, you can easily check how much 100 INR (Indian Rupees) is in USD (United States Dollars).


🔹 Features of My Currency Converter

✔ Easy-to-use interface
✔ Converts between multiple currencies
✔ Real-time calculation based on exchange rates (can be updated)
✔ Lightweight and fast execution


🔹 How I Made It

I built this project using C++ programming. The program asks the user to enter:

  1. The amount in the base currency

  2. The currency they want to convert into

After that, the program performs a quick calculation and displays the converted amount.

Here’s a simple workflow of my program:

  • Input amount → Select currency → Program applies conversion rate → Output result

  • C++
    #include 
    using namespace std;
    
    int main(){
        double amt;
        int choice;
        double usd_inr = 83.2, usd_euro = 0.92, inr_euro = 0.011;
    
        while(true){
            cout << "Currency Converter\n";
            cout << "Enter: ";
            cout << "1 for USD to INR: \n2. INR to USD \n";
            cout << "3. for USD to Euro \n 4. EURO to USD\n";
            cout << "5. for INR to Euro \n 6. EURO to INR\n";
            cout << "7 to exit or close the app : \n";
    
            cin >> choice;
    
            if (choice == 7)
            {
                cout << "Exiting THE Converter. ";
                break;
            }
            
            cout << "Enter Amount to convert: ";
    
            cin >> amt;
    
            if (choice == 1)
            {
                /* code */
                cout << "USD "<< amt << "= INR " << amt * usd_inr << endl;
            }
            else if (choice == 2)
            {
                /* code */
                cout << "INR "<< amt << "= USD " << amt / usd_inr << endl;
            }
            else if (choice == 3)
            {
                cout << "USD "<< amt << "= EURO " << amt * usd_euro << endl;
            }
            else if (choice == 4)
            {
                cout << "EURO "<< amt << "= USD " << amt / usd_euro << endl;
            }
            else if (choice == 5)
            {
                cout << "INR "<< amt << "= EURO " << amt * inr_euro << endl;
            }
             else if (choice == 6)
            {
                cout << "EURO "<< amt << "= INR " << amt / inr_euro << endl;
            }
            else{
                "Incorrect Choice! Try Again";
            }
        }
        return 0;
    }

🔹 Why I Built This Project

I wanted to practice real-life problem solving with programming. Building a currency converter not only helped me improve my coding skills but also gave me an idea of how financial tools work in real applications.


🔹 Future Improvements

Right now, my converter uses predefined exchange rates. In the future, I plan to connect it with live exchange rate APIs so that the conversions will always be up to date. I also want to create a web and mobile version for better accessibility.


💡 Final Words:
This project may look simple, but it is very useful in day-to-day life. It’s a great example of how coding can be applied to solve real-world problems.

If you want, I can also share the source code so you can try it yourself and learn from it. 🚀

Post a Comment

0 Comments