Welcome to Dream.In.Code
Getting Help is Easy!

Join 118,923 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,948 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Currency COnversion Program Help

 
Reply to this topicStart new topic

Currency COnversion Program Help

twgood
post 14 May, 2008 - 10:17 AM
Post #1


New D.I.C Head

*
Joined: 14 May, 2008
Posts: 26

Here is what I have so far, I have a loop missing though i do not know what to put there as of yet. Any help would be greatful!Main Module
Declare Currency Type as Integer
Declare Foreign Currency as Real
Declare US Dollar as real
Do while User continues
Call Display Menu Module
Call Get Foreign Currency Value Module
Call Convert Currency Module
Call Display Results Module
End Loop
End Main Module
Display Menu Module
Loop goes here Not sure about it though??
Display "Currency Converter"
Display "Select a Currency"
Display "1 Canadian Dollars"
Display "2 Mexican Pesos"
Display "3 English Pounds"
Display "4 Japanese Yen"
Display "5 French Francs"
Display "6 Done"
Input Foreign Currency Type
if Foreign currency type ≤ 5 continue to Calculate Rate
Else
display "Invalid Data Type Please Select again"
End if
End Display Menu Module

Get Foreign Currency Value Module
Display " Enter a Currency value (0-100,000)"
Input Foreign Currency value
if Foreign Currency Value <0 or Foreign Currency Value >100,000
Else Display "Invalid Entry, Please try again"
End Get Foreign Currency Value Module
Convert Currency Module
Select Foreign Currency Type
Case 1: Canadian
Set Rate= 1.4680
Case 2: Mexican
Set Rate= 9.5085
Case 3: English
Set Rate=1.6433
Case 4: Japanese
Set Rate = 104.9200
Case 5: French
Set Rate = 6.2561
US Dollar Value=Foreign Currency Value*Rate
End Convert Currency
Display Results
Declare Currency as String
Case 1: Canadian
Currency="Dollars"
Case 2: Mexican
Currency="Pesos"
Case 3: English
Currency="Pounds"
Case 4: Japanese
Currency="Yen"
Case 5: French
Currency="Francs"
Display" The Value of Foreign Currency Value" is "US Dollar Value" "Dollars"
End Display Results
User is offlineProfile CardPM

Go to the top of the page


Martyr2
post 14 May, 2008 - 10:25 AM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 4,669



Thanked 125 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


Welcome to the board... but this language you posted here is not C/C++ so you are in the wrong forum. What language is it or is this pseudocode?

Until the language is identified I am going to move it to the other programming languages section.

smile.gif

This post has been edited by Martyr2: 14 May, 2008 - 10:27 AM
User is offlineProfile CardPM

Go to the top of the page

twgood
post 14 May, 2008 - 02:31 PM
Post #3


New D.I.C Head

*
Joined: 14 May, 2008
Posts: 26

I am sorry I posted in the wrong place, it is pseudocode.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/13/08 05:00AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month