Question 1
The following pseudocode is executed using the "Shopping Bills" dataset. At the end of execution, A captures the lowest "Price" of an item purchased from "Big Bazaar". Choose the correct code fragment to complete the pseudocode. (Assume that no item has price more than 10000.)
A = 10001while (Pile 1 has more cards) { Read the top card X in Pile 1 if (X.ShopName == "Big Bazaar") { temp = findItem(X) if (temp < A) { A = temp } } Move X to Pile 2}
Procedure findItem (Y) minPrice = 10001 while (Card Y has more items) { ******************** * Fill the code * ******************** } return (minPrice)End findItem