Question: 1. Convert following sentences into facts used in Prolog program. John is the father of Susan. John is the husband of Martha. Susan eats oranges.
1. Convert following sentences into facts used in Prolog program.
John is the father of Susan.
John is the husband of Martha.
Susan eats oranges.
John bought pizza for Martha.
Susan is tired.
| John eats a pepperoni pizza. | |
| X and Y are parents of Z if X is the mother of Z and Y is the father of Z | |
| Sparky barks at anyone who walks quickly. | |
| A equals B |
|
| A does not equal B |
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
