- 1 Express Each Of Below Sentence In Predicate Calculus And Prolog Syntax A Hot And Wet Is Humid B Not Humid Or Cool 1 (33.95 KiB) Viewed 26 times
1. Express each of below sentence in predicate calculus and PROLOG syntax: a. hot and wet is humid b. not humid or cool
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Express each of below sentence in predicate calculus and PROLOG syntax: a. hot and wet is humid b. not humid or cool
1. Express each of below sentence in predicate calculus and PROLOG syntax: a. hot and wet is humid b. not humid or cool is pleasant c. bruno likes spinach ifted does not like spinach 2. Express below sentence in predicate calculus and PROLOG syntax. Use variable. bruno likes any food if ted does not like that food. 3. Consider the following rules and facts in PROLOG: likes(joe Food) - contains_cheese(Food), contains_meat(Food). likes(joe Food) :- greasy(Food). likes(joe chips). contains_cheese(macaroni). contains_cheese(lasagna). contains_meat(lasagna). greasy(french_fries). Give PROLOG queries for below: a. Does salad contain meat? b. Does lasagna contain mean? c. Does joe like chips? d. Does joe like lasagna? e. Does joe like macaroni? f. Find all foods that contain cheese. g. Find all the foods that Joe likes to eat. h. Find all the people that like to eat lasagna. i. Find all the people that like to eat macaroni.