Currency Conversion Procedure
Currency Conversion Test Procedure
Display Menu
Declare as Boolean
Set = true
While = true
Display = International Currency Conversion Program
Display = Make a Selection
Display = International Currency Types
Display = Canadian Dollars
Display = Mexican Pesos
Display = English Pounds
Display = Japanese Yen
Display = French Francs
Display = Quit
Display = Enter a Selection
Input Currency Type
If Currency Type >= 5 and Currency Type <=25 then
Set = false
Else if currency Type = 26
Display = Quitting Currency Conversion
Display = Error 4 Invalid Menu Selection
End Display Menu
Display Menu Test Produce
As the user is deciding which they would like to select an international currency type. When the user enters a number between 5 and 26 corresponding with a currency type, then the program is set to false. If 26 is selected the program displays “Quitting Currency Conversion.” But if the user does not enter a number between 5 and 26 the program displays “Error 4: Invalid Menu Selection” and the set it true.
Test Case 1
Input: user enters 5 for Canadian Dollars
Set = false
Test Case 2
Input: user enters 6 for Mexican Pesos
Set = false
Test Case 3
Input: user enters 7 for English Pounds
Set = false
Test Case 4
Input: use enters 8 for Japanese Yen
Set = false
Test Case 5
Input: user enters 9 for French Francs
Set = false
Test Case 6
Input: user enter 10 for Quit
Set = false
Test Case 7
Input: user enters 11
Output: display “Error 4: Invalid Menu Selection”
Set = true
Get International Value
Declare value as integer
Declare set as Boolean
Set = true
While = true
Display “Enter a currency value”
Input International Value
If International Value > 0 and International Value <=1000000
Set = false
Display “Error 1: Invalid Input- Negative Number”
Set = true
End if