graded assignment week 2 question 5

87 views
Skip to first unread message

Kabeer Tuli

unread,
Oct 27, 2020, 5:55:14 AM10/27/20
to Discussion forum for Computational Thinking
In the answer, it's been said " Because we have learned that the variable max should be initialized to the lowest value in the range. Here, we are computing the max of total bill amount at Sun General and the lowest possible value for any shopping bill is 1 not 0."

But we know money is Discrete value thus can be like 0.5 or <1.

If we initialize max to 1 
then computation can give misleading result if:-
(i) no customer brought anything 
(ii)max bill is of  Rs  0.5   {theoretically it can be possible}

Please clarify

Computational Thinking Support 2

unread,
Oct 27, 2020, 6:19:32 AM10/27/20
to Discussion forum for Computational Thinking, kabir....@gmail.com
Please go through the pdf as well as video solution uploaded on the portal.
For more clarification about initialization of variables check the tutorial video week 2 Tutorial 2.7.

If you have still doubt write us again.

Thanks and Regards,
Deepak
IITM Online Degree Team
Message has been deleted

Kabeer Tuli

unread,
Oct 27, 2020, 6:37:04 AM10/27/20
to Discussion forum for Computational Thinking, ct-su...@onlinedegree.iitm.ac.in, Kabeer Tuli
still not getting your point 
If fact after going through tutorial video week2 Tutorial 2.7 my analogy seems more legit
Reply all
Reply to author
Forward
0 new messages