Link to home
Start Free TrialLog in
Avatar of MRSERVER
MRSERVER

asked on

Currency Conversion

Can anyone show me a complete program design for currency coversion using the top down approach? This would include input output Hieracy chart, flow chart, program modules etc. Or direct me to a location where I can view this information.
1. Canadian dollars       (rate: 1 U.S. dollar = 1.4680 Canadian dollars)
2. Mexican pesos       (rate: 1 U.S. dollar = 9.5085 pesos
3. English pounds       (rate: 1.6433 U.S. dollars = 1 pound)
4. Japanese yen       (rate: 1 U.S. dollar = 104.9200 yen)
5. French francs       (rate: 1 U.S. dollar =  6.2561 francs)
Avatar of spoxox
spoxox
Flag of Canada image

This is a common intro to programming assignment. It's against EE rules to provide answers to homework, but help is OK.

The job is simple:

1) collect the information you need: source currency, target currency, exchange rate between those two currencies, and the amount.

2) multiply the amount by the exchange rate.

You may need to add to this. E.g., user interface: display input query and output result.

I/O hierarchy chart -
Program modules -
Flow chart -

+------------------------
| stuff goes in
+------------------------
|
v
+------------------------
| stuff happens
+------------------------
|
v
+------------------------
| stuff comes out
+------------------------

You might want to embellish this.

Best of luck!
Avatar of MRSERVER
MRSERVER

ASKER

I do not recall asking any one to do home work, what i did ask was to see an example. Never mind any way there are many other reliable sources that I can go to . Thanks for your diagram on how stuff goes in. It looks to complicated to embllish.
ASKER CERTIFIED SOLUTION
Avatar of Frosty555
Frosty555
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not to worry.

"...a complete program design for currency coversion using the top down approach? This would include input output Hieracy chart, flow chart, program modules etc. " sounds exactly like homework, as these are elements that are typical to many assignments.

Obviously I misunderstood your intent, not the first time I've made a mistake.

And welcome to EE!