Assignment: Currency Conversion Test Procedure

Only available on StudyMode
  • Download(s) : 151
  • Published : November 4, 2011
Open Document
Text Preview
Assignment: Currency Conversion Test Procedure

Purpose of Assignment

Students generate a set of test inputs and expected results for the Currency Conversion program.
Display Menu Test Cases

Test Case 1: Valid Menu Selection = Canadian Dollars

Inputs: Menu Selection = 1
Expected Outputs:
“Do you want to continue with the conversion, Y = Yes, N = No” Currency_Type = 1

Test Case 2: Valid Menu Selection = Quit

Inputs: Menu Selection = 6
Expected Outputs:
“Do you want to Quit, Y = Yes, N = No”
Currency_Type = 6

Test Case 3: Invalid Menu Selection = 9

Inputs: Menu Selection = 9
Expected Outputs:
“Error 4: Please make a valid menu selection”
“Hit any character or number to continue”
Menu is redisplayed

Get_Int_Value Test

Test Case 1: Valid International Value = 100.0
Inputs: 100.0
Expected Outputs:
International Value = 100.0

Test Case 2: Valid International Value = 0.0
Inputs: 0.0
Expected Outputs:
International Value = 00.0

Test Case 3: Invalid International Value = -15

Inputs: -15
Expected Outputs:
Error 1: Invalid input—Negative Number

Strike any character or numeric key to continue

Test Case 4: Illegal International value = character input

Input: ”L”
Expected Outputs:
Error 2: Illegal Input, Strike any character or numeric key to continue

Convert Currency Test

Test Case 1: Valid International Currency = Canadian
Inputs:

Expected Output:

Test Case 2: Valid International Currency = Mexican
Inputs:

Expected Output:

Test Case 3: Valid International Currency = English
Inputs:

Expected Output:

Test Case 4: Valid International Currency = Japanese
Inputs:...
tracking img