wrong question in graded assingment computational thinking Q10

50 views
Skip to first unread message

ankanba...@gmail.com

unread,
Nov 1, 2020, 11:18:50 PM11/1/20
to Discussion forum for Computational Thinking
Dear sir/ma'am

First T = 0, Second T=0 , Thrid T =0

if (X . totalBillAmount>=First T){
        
        Thrid T= Second T
         Second T = First T
         First T = X.totalBillAmount
}

Now if any card has same number suppose 95 which is First T and after few cards we find another card having 95 then FIrst T is 95
and Second T= 95 I think this is wrong 

Priyanshu Singh

unread,
Nov 1, 2020, 11:29:12 PM11/1/20
to Discussion forum for Computational Thinking, ankanba...@gmail.com
ur doubt isw corrwect but only if we are appling this preudocode to a genral 

Priyanshu Singh

unread,
Nov 1, 2020, 11:33:00 PM11/1/20
to Discussion forum for Computational Thinking, ankanba...@gmail.com
ur doubt is correct but that case will only happen if the pseudocode is apllied to a  general datset,but here  ques is  only taking the pseudocode with respect to shopping bills set, and ur example of 95 is not satisfied in any way according to the shopping bills dataset so according to given dataset the pseudocode is correct,and  lastly it is a question no. 9
On Monday, November 2, 2020 at 9:48:50 AM UTC+5:30 ankanba...@gmail.com wrote:

Computational Thinking Support 2

unread,
Nov 1, 2020, 11:56:56 PM11/1/20
to Discussion forum for Computational Thinking, priyanshu...@gmail.com, ankanba...@gmail.com
Hi,
Whatever Priyanshu said is correct. Since the question 10 is about "Shopping bills" dataset. So the above told situation will not come into the picture. But for the general case there should be greater than not greater than equal to will be used.
I hope your doubt is clear if not write us agian.

Regards,
Deepak
IITM Online Degree Team
Reply all
Reply to author
Forward
0 new messages