Problem in Practice Assignment -1 Not graded

51 views
Skip to first unread message

Kanishk Garg

unread,
Oct 11, 2020, 10:25:39 AM10/11/20
to Discussion forum for Computational Thinking
Hi team, 
I believe, it should be: "Number of stores from which Neeraja bought items". I believe, in practicality, many people visit the store but not necessarily purchase items from it. If so, the question is subject to the information provided in the data set, it must be duly mentioned, like the last question. Regardless, I could be wrong. Thank You

Sooraj Vignesh

unread,
Oct 11, 2020, 11:18:05 AM10/11/20
to Discussion forum for Computational Thinking, Kanishk Garg
Hi Team,

Regarding the same question, instead of 'Number of stores which Neeraja visited' a more unambiguous option would be 'Number of visits Neeraja made to these stores'.

As we have set x to be incremented every time there is a value for A,B,C which is Neeraja's visit to each of these stores. Now, consider a scenario where Neeraja has made multiple visits to the same store . Then we could have value for X >3. But the number of stores can not exceed 3 .

Hence a more apt statement would be,  'Number of visits Neeraja made to these stores'.  

But then again, since we are exclusively talking about the data cards available . The statement  'Number of stores which Neeraja visited' is true as Neeraja has not made multiple visits to the same shop . Together with the 'None of the above' option, this scenario could prove to be a bit confusing.

Regards,
SRv

Computational Thinking Support 2

unread,
Oct 11, 2020, 11:58:44 AM10/11/20
to Discussion forum for Computational Thinking, Sooraj Vignesh, Kanishk Garg
Hi,

In this problem, X stores the number of different shops Neeraja has visited. The following scenarios are possible:

Neeraja has visited:

1) exactly one shop (either SV, SG or BB) => X = 1
2) two shops (either SV-SG, SG-BB or BB-SV) => X = 2
3) three shops (SV-SG-BB) => X = 3

In this dataset, Neeraja has visited only SV stores, so X = 1. Kindly note that X doesn't store the number of times Neeraja visited SV stores.

Regards,
Karthik

Reply all
Reply to author
Forward
0 new messages