Week 2 Graded Assignment Q16, Q17

173 views
Skip to first unread message

Rhea Jain

unread,
Oct 25, 2020, 8:31:48 PM10/25/20
to Discussion forum for Computational Thinking
Just wanted to confirm if there is any typo in the curly brackets for Question 16 and 17?

Because the answers for variables B and C is being affected if there indeed is a typo in writing curly brackets.


shipra sethi

unread,
Oct 25, 2020, 10:15:36 PM10/25/20
to Discussion forum for Computational Thinking, rheajai...@gmail.com
Yeah, you are right. I have the same question because B and C will never be updated if the curly bracket is placed at the end. 

Sharath Donepudi

unread,
Oct 26, 2020, 2:20:52 AM10/26/20
to Discussion forum for Computational Thinking
Same doubt Rhea. I do not know how to proceed further with the question.Maybe we should just submit whichever answer we get. 

Jyotsna Doonga

unread,
Oct 26, 2020, 3:37:30 AM10/26/20
to Discussion forum for Computational Thinking, rheajai...@gmail.com
same rhea i guess we should write the ans we get , and maybe we should not forget the curly brackets

Computational Thinking Support 2

unread,
Oct 26, 2020, 6:12:56 AM10/26/20
to Discussion forum for Computational Thinking, Jyotsna Doonga, rheajai...@gmail.com
There is no error in the question. It has been intentionally framed that way.

Regards,
Karthik

Rhea Jain

unread,
Oct 26, 2020, 9:52:12 AM10/26/20
to Discussion forum for Computational Thinking, ct-su...@onlinedegree.iitm.ac.in, Jyotsna Doonga, Rhea Jain
Thank you for the clarification.

There is another doubt in question 18,19,20

There has been a use of comparison operation on string i.e. XDateofBirth < "1 May"
Will the pseudocode render the correct result of this operation when "1 May" is treated as a string?

Reply all
Reply to author
Forward
0 new messages