Question

7. For below English sentences write applicable Prolog facts, rules & goals. a) John reads a...

7. For below English sentences write applicable Prolog facts, rules & goals.

a) John reads a book.

b) Anyone likes sundevils if he/she is an ASU student.

c) Who likes sundevils?

d) Jane likes any village if it is small and sparse.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

reads(john,book).

likes(X,sundevils):-student(X).

likes(Who,sundevils).

likesVillage(jane,X):- vllage(X),small(X),sparse(X).

Add a comment
Know the answer?
Add Answer to:
7. For below English sentences write applicable Prolog facts, rules & goals. a) John reads a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For each of the following English statements write a prolog program. % Facts & Rules (1)...

    For each of the following English statements write a prolog program. % Facts & Rules (1) jane is a woman. (2) john is a man. (3) john is healthy. (4) jane is healthy. (5) john is wealthy. (6) anyone is a traveler if he is healthy and wealthy. (7) anyone can travel if he is a traveler. % Goals (queries). (8) Who can travel? (9) Who is healthy and wealthy?

  • CSE 240 Homework 5- Programming with PROLOG Due: Monday, April 22, 11:59 PM A. What This...

    CSE 240 Homework 5- Programming with PROLOG Due: Monday, April 22, 11:59 PM A. What This Assignment Is About: Facts, Rules, Goals Prolog execution model Arithmetic operations . Recursive Rules B. Use the following Guidelines Give identifiers semantic meaning and make them easy to read (examples numStudents, grossPay, etc.) Use tabs or spaces to indent code within blocks (code surrounded by braces). This includes classes, methods, and code associated with ifs, switches and loops. Be consistent with the number of...

  • Response Questions From Part A TOD A) Write 6-7 Sentences For Your Response: Using the IMA...

    Response Questions From Part A TOD A) Write 6-7 Sentences For Your Response: Using the IMA Statement of Ethical Professional Practice below as an ethical framework, answer the following questions: o What are the ethical issue(s) in this situation? o What are Yang's responsibilities as a management accountant? c) We budget? Why or why not? Response: Dis Write 6 Sentences For Your Response: Would your answer differ if Gutierrez Company were instead owned by one individual instead of being publicly...

  • Write 6-7 Sentences For Your Response: Did the City of Dixon have the appropriate internal controls?...

    Write 6-7 Sentences For Your Response: Did the City of Dixon have the appropriate internal controls? What elements do you think they fell short in? Information Welcome to Dixon Illinois about an hour and a half west of bustling Chicago but it has the genteel feel of a small town from the Dixon arch, a lucky horseshoe that hangs over the quaint community to the bright white boyhood home of Ronald Reagan. Reagan isn't just Dixon's claim to fame, he's...

  • i have the case study question with the answers but i need help to re-write the...

    i have the case study question with the answers but i need help to re-write the answers. please see the attached files Case Study Analysis (CSF3003) Assessment Description and Requirements CLO1: Case Study 1 Ahmad lef home to study master and PhD in Australia. He has fees for the first semester only. After he arrived to Sydney and settled down, he start looking for a part-time job to save money for the next term. Ahmad has some experience on making...

  • Book: BUSINESS LAW, Text and Cases Volume I, Clarkson, Miller, & Cross Write summary 20 sentences....

    Book: BUSINESS LAW, Text and Cases Volume I, Clarkson, Miller, & Cross Write summary 20 sentences. Chapter 7 Negligence and Strict Liability Negligence involves acts that depart from a reasonable standard of care, creating an unreasonable risk of harm to others. Strict liability is liability for injury imposed for reasons other than fault.           Negligence                                     Negligence: Failing to exercise the standard of care that a reasonable person would exercise in similar circumstances. n         In contrast to intentional...

  • Read the article below and in your own words, (1-2 sentences) what is the "true direction"...

    Read the article below and in your own words, (1-2 sentences) what is the "true direction" or right way to interpret nature, according to Bacon? True Directions Concerning the Interpretation of Nature (1620) Francis Bacon Those who have taken it on themselves to lay down the law of nature as something that has already been discovered and understood, whether they have spoken in simple confidence or in a spirit of professional posturing, have done great harm to philosophy and the...

  • BUSINESS LAW Please analyze the case "Bozzio v. EMI Group, Ltd." shown below. Write a personal...

    BUSINESS LAW Please analyze the case "Bozzio v. EMI Group, Ltd." shown below. Write a personal analysis and discussion on case that includes the following: brief intro and relate case to life, explain issue, provide ruling, and elaborate on analysis. Below is an example of response structure as well. Downey v. Bob's Discount Furniture Holdings, Inc._Case in Point 3.4 Text Page 63 by Student 1 - Sunday, August 31, 7:26 AM This case intrigued me because it raised the question...

  • Hello! Could you please write your own four paragraph (5-6 sentences per paragraph) take away or...

    Hello! Could you please write your own four paragraph (5-6 sentences per paragraph) take away or reflection of the below information? Please complete in 24 hours if possible. Thank you! RIS BOHNET THINKS firms are wasting their money on diversity training. The problem is, most programs just don’t work. Rather than run more workshops or try to eradicate the biases that cause discrimination, she says, companies need to redesign their processes to prevent biased choices in the first place. Bohnet...

  • Using the book, write another paragraph or two: write 170 words: Q: Compare the assumptions of...

    Using the book, write another paragraph or two: write 170 words: Q: Compare the assumptions of physician-centered and collaborative communication. How is the caregiver’s role different in each model? How is the patient’s role different? Answer: Physical-centered communication involves the specialists taking control of the conversation. They decide on the topics of discussion and when to end the process. The patient responds to the issues raised by the caregiver and acts accordingly. On the other hand, Collaborative communication involves a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT