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: Expected Output: Test Case 5: Valid International Currency = French Inputs: Expected Output: Test Case 6: Invalid International Currency = 6 Inputs: Expected Output: Display Results Test Cases 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: Expected Output: Test Case 5: Valid International Currency = French Inputs: Expected Output: Test Case 6: Invalid International Currency = 6 Inputs: Expected Output: Currency Conversion Integration Test Test Case 1: Valid Selection = Canadian Inputs: Expected Output Test Case 2: Valid Selection = Quit Inputs: Expected Output Thank you for using the Currency Conversion Program Test Case 3: Illegal Currency Amount Inputs: Outputs