CMIS 102 Homework 2 – Test Case Creation




5/5 - (5 votes)

Using the following pseudocode, provide 5 unique test cases that would help validate your
algorithm. Be sure to place the test cases in a table showing the input values, and expected output
for each test case.
Write “Enter the price in dollars:”
Input Price
Write “Enter state sales tax(e.g. .06) :”
Input SalesTax
Set Price = Price + (Price * SalesTax)
Write “Price with Tax is” + Price
Submit your word or PDF file to your assignments folder no later than the due date.
Grading guidelines
Submission Points
A minimum of 5 test cases were provided. 60
Input provided and explained for each test case. 10
Expected output provided and explained for each test case. 10
Test cases represent a wide variety of possible input values (e.g. large numbers,
small numbers (0), negative, or unexpected non-number entries (%,”hello”…).
Total 100