How to Make Currency Converter Program in C++

This is simple currency converter program in C++ for beginners. To convert a currency we set some static values in the program. When user enters some value for currency conversion the program take the value from static values and convert it.

 

Source Code

#include<iostream>
using namespace std;
void menu ();
int main ()
{
 double pak = 1.89,dol = 60.67, ind = 1.1,pound = 112.56, euro = 126.54;
 double amount ,converted_amount =0;
 menu();
 cin>> amount;
 cout <<" Your Amount in PAK Rupees is : " <<amount*pak <<endl;
 cout <<" Your Amount in Dollar is     : " <<amount*dol<<endl;
 cout <<" Your Amount in IND Rupees is : " <<amount*ind<<endl;
 cout <<" Your Amount in Pound is      : " <<amount*pound<<endl;
 cout <<" Your Amount in Pak Euro is   : " <<amount*euro<<endl;
 
}
void menu()
{
cout<<" \n \n  \t \t \t LEP*****CURRENCY CONVERTOR*****LEP \n \n \n \n ";
cout<< "1. Pak Rupee \n 2. Dollor \n 3. Indian Rupee \n 4. Pound \n 5. Euro \n \n  ";
cout<<" Enter Your Amount \n ";
}

Output of the Program

Currency Converter Program in C++

Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.

2 comments: