Query on Computations Thnking Graded Assignment 2 question No 3

17 views
Skip to first unread message

RAJAT YADAV

unread,
Oct 27, 2020, 5:32:31 AM10/27/20
to Discussion forum for Computational Thinking
Hi Sir,

I think the answer provided as correct for below question 3 is wrong. 

3) What will the value of A represent at the end of execution of the given procedure on the “Paragraph Words” dataset? 

Provided answer is "Length of the shortest sentence based on the number of characters" whereas i think that answer should be "None"
Reason - In Step 7. If the word ends with a full stop and B > A then store B in A, we are just storing the current value of B and not the summing up the current value of B in the previous available value of A. So A will have only the last value of B stored in the end it will not tell the length of the sentence based on characters.

Pls look into this and guide.
Regards
Rajat
Reply all
Reply to author
Forward
0 new messages