English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm supposed to write one that converts US money to other types, for example, 1 US dollar equals 9.52 pesos. I just started programming last week and I really don't know here to begin. Could someone please help me out? I'd really appreciate it.

2006-11-16 23:28:23 · 5 answers · asked by Ændru 5 in Computers & Internet Programming & Design

5 answers

i'll give you the basic syntax..fill in the rest yourself

#include
#include
#include

void main()
{
clrscr();
cout<<"\t\t Currency converter "< cout<<"\n 1) US dollars to peso "< cout<<"\n 2) US dollars to Euros "< cout<<"\n 3......... "< cout<<"\n 4 ..... "< .....................................
........................................
cout<<"\n enter your choice ";
cin>>choice;

switch(choice)
{
case 1:
clrscr();
cout<<"\n enter the amount in US dollars you want to convert to pesos ";
cin>>amount;
cout<<"\n\n "< break;
case 2 :
clrscr();
cout<<"\n enter the amount in US dollars you want to convert to Euros ";
....................................
...........................
case 3:
...................................
...

default :
cout<<"\n invalid choice...";
exit(0);
}

getch();


}

2006-11-17 04:33:04 · answer #1 · answered by life goes on... 2 · 1 0

There are lots of internet pages to help u out.

Visit this: www.netisland.go.ro.

u'll have a basic idea of C++ programming.

2006-11-17 07:36:39 · answer #2 · answered by shankar.narain 1 · 0 0

ask the user to enter a dollar amount, ask what they want to convert to (display a list), then based on that, do the conversion and display it.

2006-11-17 09:05:45 · answer #3 · answered by justme 7 · 0 0

just type ur question to yahoo search and get ur answer

2006-11-17 07:40:20 · answer #4 · answered by Anonymous · 0 0

refer to books such as deitel&deitel.

2006-11-17 10:49:13 · answer #5 · answered by ryan s 1 · 0 0

fedest.com, questions and answers