Aritra Roy
unread,Nov 3, 2020, 4:44:22 AM11/3/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Discussion forum for Computational Thinking, anandd...@gmail.com, Nikhil Gupta, Laxmi Priya Kasi, priyanshu...@gmail.com, _Music_Viking
The correct answer is 2 indeed and fortunately, I got this one right despite the level of complexity in the question. I copied words.pdf data into excel sheet to make things simple. To put it simply :-
The program checks if average letter count per sentence is less than [A increments by 1] or greater than [A returns 0 i.e. value of A doesn't change] the average letter count of the entire paragraph which is C= 5.06
Now there are 5 sentences in the passage whose average word lengths are 4.5, 5.14, 6.25, 4.67, 5.08 respectively.
As you see out of these 5 values, only 4.5 and 4.67 are the values which are less than 5.06
That's how A increments by 1 twice and A==2 finally.