Computational thinking question 5

43 views
Skip to first unread message

Neelanjan Mazumder

unread,
Oct 27, 2020, 5:32:25 AM10/27/20
to Discussion forum for Computational Thinking
why option 2 is not a mistake? if highest bill amount is 0.5? If we don't know the values in the data set?
The good practice in general is always to initialize it to 0.

Computational Thinking Support 2

unread,
Oct 27, 2020, 5:38:16 AM10/27/20
to Discussion forum for Computational Thinking, neelanjan...@gmail.com
Hi Neelanjan,
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.

Thanks and Regards,
Deepak
IITM Online Degree Team

Computational Thinking Support 2

unread,
Oct 27, 2020, 5:42:00 AM10/27/20
to Discussion forum for Computational Thinking, Computational Thinking Support 2, neelanjan...@gmail.com
You can watch the tutorial video on Initialization of variables. (Week 2 Tutorial 2.7).

If you have still doubt please write us again.

Thanks and Regards,
Deepak
IITM Online Degree Team

Kunal -

unread,
Oct 27, 2020, 5:45:29 AM10/27/20
to Discussion forum for Computational Thinking, neelanjan...@gmail.com
SIR THE QUESTION IS GENIUNE 

Rajesh Saha

unread,
Oct 27, 2020, 5:54:50 AM10/27/20
to Discussion forum for Computational Thinking, Kunal -, neelanjan...@gmail.com
Dear Sir/Madam/Deepak,

I have seen the solution video & pdf. The initial value of "max" must be 0 of less (any negative number), so the solution should be Step 2 & Step 5.
Initialization of "max" to 1 is valid only when there is a condition that the bill value can't be less than Re. 1. It was not mentioned in the question.

Reply all
Reply to author
Forward
0 new messages