![]() |
|
#1
|
|||
|
|||
C++ BeginnerI am trying to convert USD to a couple other foreign currencies. Can anyone tell me how to write this program? Thanks.
|
|
#2
|
||||
|
||||
|
Well, one way is to use simple multiplication. Use the currency exchange rate as the multiplier and your $'s are converted to whatever currency you need. This only allows for static conversions though; you will have to manually change the conversion factor whenever the exchange rate changes.
Another way is to allow the user to enter the exchange rate and then use it in the multiplier formula. That way the user is responsible for changing the value, not the programmer. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#3
|
||||
|
||||
|
Don't post 2 threads when one will do, please.
__________________
-Aaron |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| beginner questions | fightthefuture | C++ Forum | 0 | 20-Jan-2005 03:37 |
| Beginner to VB.NET and C#.NET | theduke1997 | .NET Forum | 4 | 21-Dec-2004 19:14 |
| Help a beginner with apache pls... | seta21 | Apache Web Server Forum | 3 | 27-Nov-2004 09:27 |
| RAID 0 -- beginner questions, need recommendation | ldriskell | Computer Hardware Forum | 2 | 09-Jul-2004 20:47 |
| Apache 1.3.28 >XP > Complete Beginner setting alias? | thinnk | Apache Web Server Forum | 2 | 26-Mar-2004 01:42 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The