It210 Axia Currency Conversion Final

Topics: United States dollar, Currency, Pound sterling Pages: 12 (762 words) Published: April 19, 2010
Application-Level Requirements List

1. Main Module

2. Input Module

3. Conversion Module

4. Output Module

5. Display Module/End Module

Input-Process-Output Chart

|Input |Process |Output | |Currency Selection |Get user input |Currency Type | |Canadian Dollars |Convert currency to US |US Dollar Conversion | |Mexican Pesos |Dollars | | |English Pounds | | | |Japanese Yen | | | |French Francs | | | | |Return User to Main Menu |Main Menu | |Exit | | |

Hierarchy Chart
Complete a hierarchy chart for the application above by typing into the textboxes below.

Design

Main program

Declare Type as integer
Declare 1 as string
Declare 2 as string
Declare 3 as string
Declare 4 as string
Declare 5 as string
Declare Amount as real
Declare MP_XRate as real
Declare CD_XRate as real
Declare EP_XRate as real
Declare JY_XRate as real
Declare FF_XRate as real
Declare USD as real

Call Get Amount Module
Call Calculate Exchange Module
Call Output Conversion Module

Display

End main module

Get Currency Type

Declare Type as integer
Declare 1 as string
Declare 2 as string
Declare 3 as string
Declare 4 as string
Declare 5 as string
Set Type = “1”, “2”, “3”, “4”, or “5” Set 1 = Mexican Pesos
Set 2 = Canadian Dollar
Set 3 = English Pound
Set 4 = Japanese Yen
Set 5 = France Francs
Repeat
Write,” What is the type of currency you wish to convert? 1 = Mexican Pesos, 2 = Canadian Dollar, 3 = English Pounds, 4 = Japanese Yen, 5 = France Francs” Input Type = “1”, “2”, “3”, “4”, or “5” Until Response = “1”, “2”, “3,” “4”, or “5”

Get Amount

Calculate Exchange

Declare Amount as real
Declare MP_XRate as real
Declare CD_XRate as real
Declare EP_XRate as real
Declare JY_XRate as real
Declare FF_XRate as real
Declare USD as real
Set MP_XRate = 9.5085
Set CD_XRate = 1.468
Set EP_XRate = 1.6433
Set JY_XRate = 104.92
Set FF_XRate = 6.2561

if(Type = 1)
Set Exchange_Rate = MP_XRate
Repeat
Write,” Input currency amount.”
Input, Amount
Until Amount > 0
USD = Amount/MP_XRate
else if(Type = 2)
Set Exchange_Rate = CD_XRate
Repeat
Write,” Input currency amount.”
Input, Amount
Until Amount > 0
USD = Amount/CD_XRate
else if(Type = 3)
Set Exchange_Rate = EP_XRate
Repeat
Write,” Input currency amount.”
Input, Amount
Until Amount > 0
USD = Amount*EP_XRate
else if(Type = 4)
Set Excahnge_Rate = JY_XRate
Repeat
Write,” Input currency amount.”
Input, Amount
Until Amount > 0
USD = Amount/JY_XRate
else if(Type = 5)
Set Exchange_Rate = FF_XRate...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Essay on It210 Week 6 Currency Conversion
  • Currency Conversion Test Values Essay
  • Currency Conversion Design Essay
  • Essay on Currency Conversion
  • Currency Conversion Test Procedure Essay
  • Assignment: Currency Conversion Design Essay
  • Currency Conversion Test Essay
  • It210 Final Essay

Become a StudyMode Member

Sign Up - It's Free