in qualifiers

184 views
Skip to first unread message

Sofia Sagar

unread,
Nov 3, 2020, 2:28:26 AM11/3/20
to Discussion forum for Computational Thinking
hello sir / madam
i just wanted to bring to your notice that questions like the  one asked in week 3 assignment question number 2 are hard to calculate and time consuming . they are error prone too . 
so in the qualifiers exam will we be given access to excell sheets or calculator .
 if not  is there any other way you expect us for solving such problems .
please kindly inform us . 
thank you 

Sofia Sagar

unread,
Nov 8, 2020, 11:09:51 PM11/8/20
to Discussion forum for Computational Thinking
--
You received this message because you are subscribed to a topic in the Google Groups "Discussion forum for Computational Thinking" group.
To unsubscribe from this topic, visit https://groups.google.com/a/nptel.iitm.ac.in/d/topic/cs1001-discuss/vvJclfxoyRw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cs1001-discus...@nptel.iitm.ac.in.
To view this discussion on the web visit https://groups.google.com/a/nptel.iitm.ac.in/d/msgid/cs1001-discuss/6152c559-2b1a-41fc-830c-ef444758dfebn%40nptel.iitm.ac.in.

Computational Thinking Support 2

unread,
Nov 9, 2020, 12:47:55 AM11/9/20
to Discussion forum for Computational Thinking, Sofia Sagar
Hi,
You will not get any questions which require lengthy calculations to solve in the qualifier exam of CT.
BTW, Week 3 Q2 is not a time consuming question if you know the concept. In pseudocode, we are calculating averages of total marks (SumT), Physics marks (SumP), Maths marks (SumM) and Chemistry marks (SumC).

A =  SumT/Count, B = SumM/Count, C = SumP/Count and D = SumC/Count,
You need to find, B + C + D - A = ?
Here, Sum of total marks (SumT) = Sum of Maths marks (SumM) + Sum of Physics marks (SumP) + Sum of Chemistry marks (SumC)
Now we divide by Count on both sides which will give averages of all.
So, {Sum of total marks (SumT) }/Count = {Sum of Maths marks (SumM)}/Count + {Sum of Physics marks (SumP)}/Count + {Sum of Chemistry marks (SumC)}/Count
The above expression will be,come A = B + C + D
Now bring A to right side, 0 = B + C + D - A
So the value of B + C + D - A = 0.
In the if expression we are comparing the value of
(a)  (B + C + D) - A <= -1 : (0 <= -1) which not true. So value of Z will not be updated.
(b)  (B + C + D) - A >= 1 : (0 >= 1) which not true. So value of Z will not be updated.
Therefore the value of Z will be 0 only.

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