Q10.The following pseudocode is executed using the "Shopping Bills" dataset. At the end of execution, `A` captures the lowest price across all items purchased from "Big Bazaar". Choose the correct code fragment to complete the pseudocode.
```
A = 10000000
while(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)
**********************
****Fill the code****
**********************
End findItem
```
Save
Check
Details
Q10
13 Jul 2025
Q10.The following pseudocode is executed using the "Shopping Bills" dataset. At the end of execution, `A` captures the lowest price across all items purchased from "Big Bazaar". Choose the correct code fragment to complete the pseudocode.
```
A = 10000000
while(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)
**********************
****Fill the code****
**********************
End findItem
```