Q23.In the "Shopping Bills" dataset, the procedure `countBills` counts the number of bills from Big Bazaar with total amount more than the average total bill amount. Assume that the variable `Avg` holds the value of the average total bill amount. Choose the correct code fragment(s) to complete the procedure. It is a Multiple Select Question (MSQ).
```
Procedure countBills()
count = 0
while(Pile 1 has more cards){
Read the top card X from Pile 1
*********************
** Fill the code **
*********************
Move card X to Pile 2
}
return(count)
End countBills
```
Save
Check
Details
Q23
7 Jul 2024
Q23.In the "Shopping Bills" dataset, the procedure `countBills` counts the number of bills from Big Bazaar with total amount more than the average total bill amount. Assume that the variable `Avg` holds the value of the average total bill amount. Choose the correct code fragment(s) to complete the procedure. It is a Multiple Select Question (MSQ).
```
Procedure countBills()
count = 0
while(Pile 1 has more cards){
Read the top card X from Pile 1
*********************
** Fill the code **
*********************
Move card X to Pile 2
}
return(count)
End countBills
```