
May 8th, 2006, 07:01 PM
|
|
Contributing User
|
|
Join Date: Jan 2005
Posts: 600

Time spent in forums: 2 Days 22 h 40 m 27 sec
Reputation Power: 4
|
|
|
here's a very basic algorithm:
1. get input currency from the user (make sure it's one that you implement, maybe have a menu "Type 1 for USD, 2 for EUR, etc")
2. get input amount from user (store in a float)
3. get output currency from user (same proviso as #1)
4. look up the exchange rate, maybe in a two-dimensional array (columns input currency, rows output currency or vice versa) and multiply input by exchange rate to get output
5. display output on screen
what do you have so far, where specifically are you having trouble, and what are the constraints of your assignment? these questions will help us help you better
|