Currency Conversion Test Values
Currency Conversion Test Values
Input
Expected Output
Comments
Selection = TEST
Error Message
Invalid input
Selection = c
“Let’s get started.”
Prompt country selection
Selection = e
“Are you sure you wish to exit?”
Prompt validation message
Selection = y
“Thank you for using the Currency Conversion Program. Goodbye.”
Terminate program
Selection = n
“Select a country from the following options:”
Prompt country selection
Country Selection = Zimbabwe
Error Message
Invalid foreign currency
Country Selection = 0
Error Message
Invalid foreign currency
Country Selection = 6
Error Message
Invalid foreign currency
Country Selection = 1
Canadian dollars
Execute foreign value as Canadian Dollar
Exchange Rate = 1.4680
Country Selection = 2
Mexican pesos
Execute foreign value as Mexican peso
Exchange Rate = 9.5085
Country Selection = 3
English pound
Execute foreign value as
English pound
Exchange Rate = 0.6085
Country Selection = 4
Japanese yen
Execute foreign value as Japanese yen
Exchange Rate = 104.9200
Country Selection = 5
EU euro
Execute foreign value as
EU euro
Exchange Rate = 0.7676
Foreign Amount = -1
Error message
Invalid exchange amount
Foreign Amount = 0
Error message
Invalid exchange amount
Foreign Amount = 1000001
Error message
Invalid exchange amount
Foreign Amount = 1
Country: Canada
Rate: 1.4680
U.S. Value: 0.6811
Lowest valid exchange in Canadian dollars
Foreign Amount = 500000
Country: Canada
Rate: 1.4680
U.S. Value: 340599.4550
Middle exchange in Canadian dollars
Foreign Amount = 1000000
Country: Canada
Rate: 1.4680
U.S. Value: 681198.9100
Maximum valid exchange in Canadian dollars
Foreign Amount = 1
Country: Mexico
Rate: 9.5085
U.S. Value: 0.1051
Lowest valid exchange in Mexican pesos
Foreign Amount = 500000
Country: Mexico
Rate: 9.5085
U.S. Value: 52584.5296
Middle exchange in Mexican