Currency Conversion Test Procedure
Treasa Benner
Axia College
Currency Conversion Test Procedure
Display Menu
Declare continue as Boolean
Set continue = true
While continue = true
Display "Welcome to the international currency conversion program"
Display "Please make a selection"
Display "World Wide Currency Types:"
Display "1: Canadian Dollars"
Display "2: Mexican Pesos"
Display "3: English Pounds"
Display "4: Japanese Yen"
Display "5: French Francs"
Display "6: End"
Display "Select Currency"
Input currencyType
If currencyType >= 1 AND currencyType <= 5 then
Set continue = false
else if currencyType = 6
Display “Ending Currency Conversion”
continue = false
else
Display “"Error 4: Invalid menu selection."
continue = true
end if
end While
End Display Menu
Display Menu Test Procedure
The user is asked to select an international currency type. When the user enters a number between 1 and 6 it will open a certain currency type. After this the program sets itself to false. If 6 is selected the program displays “Ending Currency Conversion.” If the user does not enter a number between 1 and 6 the program displays “Error 4: Invalid menu selection.” And continue is set to true.
Test Case 1,
Input: user enters 1 for Canadian Dollars,
set continue = false
Test Case 2
Input: user enters 2 for Mexican Pesos
set continue = false
Test Case 3
Input: user enters 3 for English Pounds
set continue = false
Test Case 4
Input: user enters 4 for Japanese Yen
set continue = false
Test Case 5
Input: user enters 5 for French Francs
set continue = false
Test Case 6
Input: user enters 6 for Quit
set continue = false
Test Case 7
Input: user enters 7
Output: Display “"Error 4: Invalid menu selection."
continue = true
The next module tested is the Get International Value module.
Get International Value
Get International Value
Declare value as integer
Declare continue as Boolean
Set continue = true...