Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Currency Conversion

Posted on 2008-06-22
Medium Priority
2,596 Views
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.
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)
0
Question by:MRSERVER
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 11

Expert Comment

ID: 21843126
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!
0

Author Comment

ID: 21843187
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.
0

LVL 31

Accepted Solution

Frosty555 earned 1000 total points
ID: 21843209
We can give you more information about the top down approach and how to apply it to computer algorithms:

http://en.wikipedia.org/wiki/Top-down - Wikipedia's general overview. Usually very good, but also very succinct and brief.

http://au.answers.yahoo.com/question/index?qid=20080509073535AAk2IGD - U of MBC powerpoint presentation on top down design with a couple examples.

http://www.cs.usfca.edu/~parrt/course/601/lectures/top.down.design.html - U of SFC with an in depth case study related to web servers

Now apply that to your homework problem and you should be all set.
0

LVL 11

Expert Comment

ID: 21843269
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!
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The greatest common divisor (gcd) of two positive integers is their largest common divisor. Let's consider two numbers 12 and 20. The divisors of 12 are 1, 2, 3, 4, 6, 12 The divisors of 20 are 1, 2, 4, 5, 10 20 The highest number among the c…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
###### Suggested Courses
Course of the Month11 days, 9 hours left to enroll