Q32.The given pseudocode is executed using the "Words" dataset. Assume that `vCount(X)` returns the number of vowels in `X.Word`. What will `B` represent at the end of the execution?
```
SumT = 0, CountT = 0, B = 0
while(Pile 1 has more cards){
Read the top card X from Pile 1
if(vCount(X) > 1){
SumT = SumT + X.LetterCount
CountT = CountT + 1
}
Move X to Pile 2
}
B = SumT / CountT
```
Save
Check
Details
Q32
16 Jul 2023
Q32.The given pseudocode is executed using the "Words" dataset. Assume that `vCount(X)` returns the number of vowels in `X.Word`. What will `B` represent at the end of the execution?
```
SumT = 0, CountT = 0, B = 0
while(Pile 1 has more cards){
Read the top card X from Pile 1
if(vCount(X) > 1){
SumT = SumT + X.LetterCount
CountT = CountT + 1
}
Move X to Pile 2
}
B = SumT / CountT
```