Q16.The following pseudocode is executed using the "Words" dataset. What will `Count` represent at the end of execution?
```
count = 0, Flag = True
while(Table 1 has more cards){
Read the first row X from Table 1
if(CountVowels(X) != X.LetterCount - CountVowels(X)){
Flag = False
}
if(X.Word ends with a full stop){
if(Flag){
count = count + 1
}
Flag = True
}
Move X to Table 2
}
Procedure CountVowels(Y)
i = 1
B = 0
while(i <= Y.LetterCount){
if(ith letter of Y.Word is a vowel){
B = B + 1
}
i = i + 1
}
return(B)
End CountVowels
```
Save
Check
Details
Q16
27 Oct 2024
Q16.The following pseudocode is executed using the "Words" dataset. What will `Count` represent at the end of execution?
```
count = 0, Flag = True
while(Table 1 has more cards){
Read the first row X from Table 1
if(CountVowels(X) != X.LetterCount - CountVowels(X)){
Flag = False
}
if(X.Word ends with a full stop){
if(Flag){
count = count + 1
}
Flag = True
}
Move X to Table 2
}
Procedure CountVowels(Y)
i = 1
B = 0
while(i <= Y.LetterCount){
if(ith letter of Y.Word is a vowel){
B = B + 1
}
i = i + 1
}
return(B)
End CountVowels
```