Week 6 It 210 Currency Conversion Design

Only available on StudyMode
  • Download(s) : 319
  • Published : October 7, 2012
Open Document
Text Preview
Currency Conversion Design

Currency Conversion Design
**********Begin Test Procedure***********
------------Menu Error Testing------------
Test Case 1:
Inputs:
CurrencyType = “U”
Expected Output:
Invalid currency selection. Please try again
Test Case 2:
Inputs:
CurrencyType = “0”
Expected Output:
Invalid currency selection. Please try again
Test Case 3:
Inputs:
CurrencyType = “9”
Expected Output:
Invalid currency selection. Please try again
------------End Menu Error Testing------------
----------Currency Conversion Testing----------
Test Case 1: Valid International Currency = Canadian
Inputs:
CurrencyType = 1
CurrencyAmount = 100.0
Expected Output:
USDollar = 68.12
Test Case 2: Valid International Currency = Mexican
Inputs:
CurrencyType = 2
CurrencyAmount = 100.0
Expected Output:
USDollar = 10.52
Test Case 3: Valid International Currency = English
Inputs:
CurrencyType = 3
CurrencyAmount = 100.0
Expected Output:
USDollar = 164.33
Test Case 4: Valid International Currency = Japanese
Inputs:
CurrencyType = 4
CurrencyAmount = 100.0
Expected Output:
USDollar = 00.95
Test Case 5: Valid International Currency = French
Inputs:
CurrencyType = 5
CurrencyAmount = 100.0
Expected Output:
USDollar = 15.98
Test Case 6: Valid International Currency = Quit
Inputs:
CurrencyType = 6
Expected Output:
End program
----------End Currency Conversion Testing----------
----------Conversion Error Testing----------
Test Case 1: Valid International Currency = Canadian
Inputs:
CurrencyType = 1
CurrencyAmount = 0
Expected Output:
Invalid Amount
Test Case 2: Valid International Currency = Mexican
Inputs:
CurrencyType = 2
CurrencyAmount = 50000000
Expected Output:
Invalid Amount
Test Case 3: Valid International Currency = English
Inputs:
CurrencyType = 2299938847
CurrencyAmount = 100.0
Expected Output:
Invalid Amount
Test Case 4: Valid International Currency = Japanese
Inputs:
CurrencyType = 9
CurrencyAmount = 0
Expected Output:
Invalid Amount
Test Case 5: Valid International Currency = French
Inputs:
CurrencyType = 99000000
CurrencyAmount = 100.0
Expected Output:
Invalid Amount
----------End Conversion Error Testing----------
----------Output Testing----------
Test Case 1: Valid International Currency = Canadian
Inputs:
CurrencyType = 1
CurrencyAmount = 100.0
Expected Output:
The value of 100 Canadian Dollars is 68.12 U.S Dollars
Test Case 2: Valid International Currency = Mexican
Inputs:
CurrencyType = 2
CurrencyAmount = 100.0
Expected Output:
The value of 100 Mexican Pesos is 10.52 U.S Dollars
Test Case 3: Valid International Currency = English
Inputs:
CurrencyType = 3
CurrencyAmount = 100.0
Expected Output:
The value of 100 English Pounds is 164.33 U.S Dollars
Test Case 4: Valid International Currency = Japanese
Inputs:
CurrencyType = 4
CurrencyAmount = 100.0
Expected Output:
The value of 100 Japanese Yen is 00.95 U.S Dollars
Test Case 5: Valid International Currency = French
Inputs:
CurrencyType = 5
CurrencyAmount = 100.0
Expected Output:
The value of 100 French Francs is 15.98 U.S Dollars
Test Case 6: Valid International Currency = Quit
Inputs:
CurrencyType = 6
Expected Output:
Are you sure you want to Quit? Y/N
----------End Output Testing----------
**********End of Test Procedure**********
Application-Level Requirements List
1) Get input from the user.
2) Enter the amount of foreign currency that is to be converted. 3) Select the type of foreign currency that is to be converted to U.S dollars. 4) Divide the amount of currency by the foreign currency rate. Canadian Dollars (Rate: 1 U.S. Dollar = 1.4680 Canadian Dollars.) Mexican Pesos (Rate: 1 U.S. Dollar = 9.5085 Pesos.)

English Pounds (Rate: 1.6433 U.S. Dollars = 1 Pound.)
Japanese Yen (Rate: 1 U.S. Dollar = 104.9200 Yen.)
French Francs (Rate: 1 U.S. Dollar = 6.2561 Francs.)
5) Output the converted results.
Main Module
Declare Nationality as string
Declare...
tracking img