Question: Homework 2 Test Case Creation Using the following pseudocode, provide 5 unique test cases that would help validate the algorithm in the Pseudo-code below. Be

Homework 2 Test Case Creation Using the following pseudocode, provide 5 unique test cases that would help validate the algorithm in the Pseudo-code below. Be sure to place the test cases in a table showing the input values, the expected TaxRate to be used, and the expected output for each test case. Make sure you test All IF conditions. Main Declare State AS String End Declare Price, TaxRate, SalesTax AS Float // Prompt user for inputs Write "Enter the State Abbrv (2char- upper case)." Input State Write "Enter the price in dollars:" Input Price //Validate Price If (Price < 0) Write *** Invalid Price , Must be positive EndIf IF (State == NY OR State == CA OR State == NJ) TaxRate = .09 ELSEIF (State == MD OR State == DE) TaxRate = .08 Else TaxRate = .05 Endif // Calculate Sales Tax SalesTax = Price *TaxRate // Calculate price with sales tax Set Price = Price + SalesTax // Display State and Price Write "Price with Tax is" + Price Submit your Word or PDF file to your assignments folder no later than the due date.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!