doubt regarding GRADED ASSIGNMENT 3 (Q6-Q9)

106 views
Skip to first unread message

nibedita chakraborty

unread,
Nov 3, 2020, 1:32:54 AM11/3/20
to Discussion forum for Computational Thinking







Sir,
In the question 6 to 9 if we have 1 shopping bill in A, 3 shopping bill in B, 6 shopping bill in C and 24 shopping bill in D then adding all these number of shopping bill we get a total of 34 shopping bills. How is that possible when there are only 30 shopping bills ? Also one shopping bill can not come under more than one grade. Then how is this answer valid? I will be grateful if you could answer my question.
Thank you.

Your Sincerely 
Nibedita 

ajeetku...@gmail.com

unread,
Nov 3, 2020, 2:54:29 AM11/3/20
to Discussion forum for Computational Thinking
In this question It said (X.TotalBillAmount > mid1) means only those bills whose value is greater than mid1
in second if condition (X.TotalBillAmount > mid2) means it include both bills whose value is greater than mid2 and also mid1
In third if condition (X.TotalBillAmount > mid3) means it include all bills whose value is greater than mid3 (that  means it include mid2 and mid1also)

Reply all
Reply to author
Forward
0 new messages