GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 31-Jan-2005, 08:12
JYGUTI JYGUTI is offline
New Member
 
Join Date: Jan 2005
Posts: 3
JYGUTI is on a distinguished road

C++ Beginner


I am trying to convert USD to a couple other foreign currencies. Can anyone tell me how to write this program? Thanks.
  #2  
Old 31-Jan-2005, 17:14
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,576
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice
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  
Old 01-Feb-2005, 13:27
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
Don't post 2 threads when one will do, please.
__________________
-Aaron
 
 

Recent GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 07:47.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.