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