Question: What missing code should be added to this class to ensure that calling count _ consonants ( Hello World ) returns 7 ? class
What missing code should be added to this class to ensure that calling countconsonantsHello World" returns
class TEST
feature
countconsonantss: STRING: INTEGER
local
count: INTEGER
i: INTEGER
vowels: STRING
do
count :
vowels : "aeiouAEIOU"
from
i :
until
i scount
loop
if then
count : count
end
i : i
end
Result : count
end
end
Question Answer
a
vowels.hassi
b
not vowels.hassitemi
c
vowels.hassitemi
d
sitemi not in vowels
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
