About graded assignment week 2

78 views
Skip to first unread message

beula ruby

unread,
Oct 27, 2020, 1:16:04 AM10/27/20
to Discussion forum for Computational Thinking
respected sir,
    
1) question no 5 --step 2 is also wrong .
2)question no 3--given that the answer is Length of longest sentence based on number of charecters.I know that letters are charecters, but there are semicolon ,colon etc with some of these words and we are not counting that .Then how can we say that 'based on number of charecters'.It is only based only  on number of letters.There is a none of the above option also .

Computational Thinking Support 2

unread,
Oct 27, 2020, 1:17:46 AM10/27/20
to Discussion forum for Computational Thinking, beular...@gmail.com
Hi,
Please check the pdf solution provided on the portal. The solution video will be uploaded in sometime.
If you have still doubt please write us again.

Regards,
Deepak
IITM Online Degree Team

Abhighyan Sinha

unread,
Oct 27, 2020, 1:22:55 AM10/27/20
to Discussion forum for Computational Thinking, ct-su...@onlinedegree.iitm.ac.in, beular...@gmail.com

Why should max be initialized to 1, and not 0?
Assuming that we have not gone through the dataset, the minimun value of the bill may be less than 1(for example, an item worth 50 paisa); and therefore initializing max to 1 can lead to the wrong answer.
Message has been deleted
Message has been deleted

beula ruby

unread,
Oct 27, 2020, 3:18:39 AM10/27/20
to ct-su...@onlinedegree.iitm.ac.in, Discussion forum for Computational Thinking
I read the pdf but the answer for my second question is not cleared.  Letters are charecters I know, but there are semicolon colon etc with words and we are not counting that, then how can we say that it is longest sentence based on charecters. If option none of the above is not there we can mark option c. Please clarify my this doubt. 
Reply all
Reply to author
Forward
0 new messages