I am trying to expand on a currency conversion code that I wrote I'm tryin to create a menu (using a loop) that allows the user to choose which currency and the amount of the foreign currency they wish to convert to US dollars. The program will continue running u.ntil the user select "Exit" option. Below is the code I been done so far
#include<iostream.h>
double amount = 0.0; /*Stores user input*/
int main()
{
cout<<"Currency Conversion"<<endl;
cout<<"--------------------\n";
cout<<"Enter the amount in US Dollar: "; /*Prompt user for amount*/
cin>>amount; /* Read in the amount*/
/*Convert the amount to each currency type and print it out*/
cout<<amount<<" US Dollars = "<<amount/0.6072<<" Swiss Francs\n";
cout<<amount<<" US Dollars = "<<amount/1.4320<<" British Pounds\n";
cout<<amount<<" US Dollars = "<<amount/0.0081<<" Japanese Yens\n";
cout<<amount<<" US Dollars = "<<amount/0.6556<<" Canadian Dollars\n";
cout<<amount<<" US Dollars = "<<amount/0.8923<<" Euros\n";
}