Solved

Currency Conversion

Posted on 2008-06-22
4
2,543 Views
Last Modified: 2012-05-05
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)
0
Comment
Question by:MRSERVER
  • 2
4 Comments
 
LVL 11

Expert Comment

by:spoxox
Comment Utility
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

by:MRSERVER
Comment Utility
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

by:
Frosty555 earned 250 total points
Comment Utility
We can give you more information about the top down approach and how to apply it to computer algorithms:

http://au.answers.yahoo.com/question/index?qid=20080509073535AAk2IGD - Yahoo! Answers, basic answer with a football example

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

by:spoxox
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now