Graded assignment question 2

122 views
Skip to first unread message

KHUSHI SHARMA

unread,
Nov 2, 2020, 1:50:46 PM11/2/20
to Discussion forum for Computational Thinking
sir why is the answer of question 2 not equal to  +1...?

ARIJIT DUTTA

unread,
Nov 2, 2020, 2:33:43 PM11/2/20
to KHUSHI SHARMA, Discussion forum for Computational Thinking
Dear Khushi,
                       If you can calculate A,B,C,D in Excel sheet independently,  then you can find the value of total expression is coming as exact 0.

ARIJIT DUTTA
Divisional Engineer, WBSETCL
( A Government of West Bengal Enterprise)

On Tue, Nov 3, 2020, 00:20 KHUSHI SHARMA <khushi...@gmail.com> wrote:
sir why is the answer of question 2 not equal to  +1...?

--
You received this message because you are subscribed to the Google Groups "Discussion forum for Computational Thinking" group.
To unsubscribe from this group and stop receiving emails from it, 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/8b167159-b64f-47d0-9a97-f097299599d6n%40nptel.iitm.ac.in.

satya takkellapati

unread,
Nov 2, 2020, 9:02:42 PM11/2/20
to Discussion forum for Computational Thinking, KHUSHI SHARMA
B= SumM/count
C= SumP/count
D=SumC/Count
B+C+D=(SumM + SumP + SumC)/count=SumT/count = A
B+C+D=A => B+C+D-A=0

Computational Thinking Support 2

unread,
Nov 3, 2020, 1:56:47 AM11/3/20
to Discussion forum for Computational Thinking, saty...@gmail.com, KHUSHI SHARMA
Hi,
The above explanation is correct.
Conceptually the value of (B+C+D) - A will be 0. So none of the if condition will be true. Therefore the value of Z will be 0.
Even if you consider two decimal places in all division operations as mentioned in question you will get
A= 222.46
B = 72.36
C = 72.96
D = 77.13
(B+C+D) - A = -0.01
Here also none of the if condition will be true. Therefore the value of Z will be 0.

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