Murder Mystery:
Four guests (Colonel Mustard, Professor Plum, Miss Scarlett, Ms. Green) attend a dinner party at the home of Mr. Boddy. Suddenly, the lights go out! When they come back, Mr. Boddy lies dead in the middle of the table. Everyone is a suspect.
Upon further examination, the following facts come to light:
Can’t Find the Right Words? We’ll Help You Write a Winning Essay.
Tell us about your paper and we will find the best writer for your essay.
Write My Essay For Me• Mr Boddy was having an affair with Ms. Green.
• Professor Plum is married to Ms. Green.
• Mr. Boddy was very rich.
• Colonel Mustard is very greedy.
• Miss Scarlett was also having an affair with Mr. Boddy.
There are two possible motives for the murder: hatred and greed. Someone hates someone else if that other person is having an affair with his/her spouse. Someone is willing to commit murder if he/she is greedy and not rich, and the victim is rich.
Who are the suspects?
————————————————————————————————————————————————–
2- Below is a list of the most recent American presidents:
Donald Trump 2017-
Barack Obama 2009-2017
George W.Bush 2001-2009
Bill Clinton 1993-2001
George H.W.Bush 1989-1993
Ronald Reagan 1981-1989
Jimmy Carter 1977-1981
Gerald Ford 1974-1977
Richard Nixon 1969-1974
Lyndon B.Johnson 1963-1969
John F. Kennedy 1961-1963
a) Build a knowledge base using the predicate directlyAfter/2 which encodes one president is directly after another president.
b) Formulate and add a RULE called directlyBefore/2 tells which president is directly before which other president.
c) Define another rule called after/2 that tells us which president is (directly or indirectly) after which other president. For example, the query after(‘Barak Obama’, ‘John F. Kennedy’). should evaluate to be true, while after(‘George H. Bush’,’Barak Obama’). should fail.
d) Test your implementation by asking queries. Write down your query and also the result.
• Is Obama directly before Trump?
• Is Carter after Johnson?
• Who are after Ford?
• Who are the presidents in the knowledge base?

- Confidentiality & Authenticity Guaranteed
- Plagiarism Free Content Guarantee
- APPROVEDSCHOLARS Guarantee Timely Delivery of All Papers
- Quality & Reliability
- Papers Written from Scratch and to Your Instructions
- Qualified Writers Only
- APPROVEDSCHOLARS Allow Direct Contact With Your Writer
- Using APPROVEDSCHOLARS.COM Means Keeping Your Personal Information Secure
- 24/7 Customer Support



