Q61.Let `X` be a row from the Words table. Consider the following procedure. The return value of `isRich(Y)` will be `False` if:
```
Procedure isRich(X)
vDict = {}
i = 1, A = ""
while(i <= X.LetterCount) {
A = ith letter in X.Word
if(A is a vowel) {
vDict[A] = True
}
i = i + 1
}
if(length(keys(vDict)) >= 3) {
return(True)
}
return(False)
End isRich
```
Save
Check
Details
Q61
20 Nov 2022
Q61.Let `X` be a row from the Words table. Consider the following procedure. The return value of `isRich(Y)` will be `False` if:
```
Procedure isRich(X)
vDict = {}
i = 1, A = ""
while(i <= X.LetterCount) {
A = ith letter in X.Word
if(A is a vowel) {
vDict[A] = True
}
i = i + 1
}
if(length(keys(vDict)) >= 3) {
return(True)
}
return(False)
End isRich
```