# Currency Conversion Final (It310)

Essay by   •  November 29, 2010  •  448 Words (2 Pages)  •  1,537 Views

## Essay Preview: Currency Conversion Final (It310)

Report this essay
Page 1 of 2

First Input = 1 Output = Ð²Ð‚ÑšHow much Canadian Dollars do you want to convert?Ð²Ð‚Ñœ Second Input = 20.50 Output = 20.50 Canadian Dollars is converted to \$13.96Ð²Ð‚Ñœ

First Input = 2 Output = Ð²Ð‚ÑšHow much Mexican Pesos do you want to convert?Ð²Ð‚Ñœ Second Input = 205.00 Output = 205.00 Mexican Pesos is converted to \$21.56Ð²Ð‚Ñœ

First Input = 3 Output = Ð²Ð‚ÑšHow much English Pounds do you want to convert?Ð²Ð‚Ñœ Second Input = 2050.00 Output = 2050.00 English Pounds is converted to \$3368.77Ð²Ð‚Ñœ

First Input = 4 Output = Ð²Ð‚ÑšHow much Japanese Yen do you want to convert?Ð²Ð‚Ñœ Second Input = 369.96 Output = 369.96 Japanese Yen is converted to \$3.53Ð²Ð‚Ñœ

First Input = 5 Output = Ð²Ð‚ÑšHow much French Francs do you want to convert?Ð²Ð‚Ñœ Second Input = 100.00 Output = 100.00French Francs is converted to \$5.90Ð²Ð‚Ñœ

Main Module

Declare Currency_Selection as real

Declare foreign_value and USD_amount as Integer

Declare foreign_name as String

Call Program Description Module

Set Currency_Selection = 0 // Makes While Statement true to

begin loop.

While Currency_Selection <> 6 then

Set Currency_Selection = 0

Call Input Data Module

Call Set Currency Value Module

Call Perform Calculations Module

Call Output Data Module

End while

End Program

Program Description Module

Center justify text

Bold text

Write Ð²Ð‚ÑšInternational Currency Conversion ApplicationÐ²Ð‚Ñœ

Write // Line space

Left justify text

Normal text

Write Ð²Ð‚ÑšThis program will convert 5 foreign currencies into U.S. Dollars. The maximumÐ²Ð‚Ñœ

Write Ð²Ð‚Ñšamount of foreign currency to convert is 1,000,000 (million) units.Ð²Ð‚Ñœ

Write // Line space

Write Ð²Ð‚ÑšSelect from the currencies below to continue or press 6 to Exit.Ð²Ð‚Ñœ

Write // Line space

Write Ð²Ð‚Ñš2. Mexican PesosÐ²Ð‚Ñœ

Write Ð²Ð‚Ñš3. English PoundsÐ²Ð‚Ñœ

Write Ð²Ð‚Ñš4. Japanese YenÐ²Ð‚Ñœ

Write Ð²Ð‚Ñš5. French FrancsÐ²Ð‚Ñœ

Write // Line space

Write Ð²Ð‚Ñš6. EXIT ProgramÐ²Ð‚Ñœ

Write // Line space

Get Currency_Selection // When user presses any key on

The keyboard then the program will

continue

If Currency_Selection < 1 or >6 AND <> String value then //String Value being other than a

number

Write Ð²Ð‚ÑšIncorrect Entry, Please try again.Ð²Ð‚Ñœ

Write Ð²Ð‚ÑšPlease press any key to continue.Ð²Ð‚Ñœ

Get any keystroke // When user presses

...

...