Re: logic questions(pls give full solution)
Posted by Amit Goyal on May 03, 2009; 3:14am
URL: http://discussion-forum.276.s1.nabble.com/logic-questions-pls-give-full-solution-tp2763642p2773456.html
a chocolate bar has been stolen by either child a or b. one of child is innocent .here are the statements of witnesses and other interested parties
c: a has not stolen the chocolate bar
d: a has stolen things in the past
e: b has stolen things in the past
f: e has stolen things in the past
g: d and e are bot right
h: d and f are both right
i: e or f is right , & may be both
j: g or h is right , and may be both
k: d and i are right
l: j is right and k is wrong
suppose that c and l are either both telling the truth or both lying. who stole the chocolate bar?
Solution:
Assumption: Suppose c and l are telling the truth.
This implies a has not stolen the chocolate bar. i.e. a is innocent.
And j is right and k is wrong.
j is right implies g or h is right, and may be both
k is wrong implies d or i is wrong or may be both
g or h is right, and may be both implies d is right and e or f is right, and may be both.
d or i is wrong or may be both implies d is wrong or both e and f are wrong.
So we arrive at a contradiction.
Hence our assumption is false.
Thus, c and l are lying. This implies a has stolen the chocolate bar.