Question 1
The following pseudocode is executed using the "Shopping Bills" dataset. At the end of execution, A captures the highest "Price" of an item purchased from "Big Bazaar". Choose the correct code fragment to complete the pseudocode.
A = 0while (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) maxPrice = 0 while (Card Y has more items) { ******************** * Fill the code * ******************** } return (maxPrice)End findItem