.png?part=0.1&view=1)
Let us analyse the given procedure, in step 2 two variables A and B are initialized to 0.
In step 5 variable B is getting incremented if part of speech is “Verb” which means variable B
is counting number of verbs. Conditions in steps 6 and 7 are exactly opposite to each other.
As per the combination of steps 6 and 9 we are counting verbs with variable B until we reach
to a full stop. In other words, we are counting number of verbs in each sentence. As per step 7
if a sentence ends and verb count in variable B is 1 then we are incrementing variable A. Step
8 resets the value of variable B so that the same variable can be used to count number of verbs
in the next sentence. Based on this analysis we can conclude that the variable A gets
incremented only if variable B’s value is 1. Hence, the answer of this question is Total number
of sentences with only one verb in it.