Question: You should use SWI Prolog software to write your code. Run the following queries in Prolog and write your query and the Prolog answers to

You should use SWI Prolog software to write your code.
Run the following queries in Prolog and write your query and the Prolog answers to your Word
document:
Is Taylor athletic?
Is Jordan athletic?
Is Taylor energetic?
Is Jordan energetic?
Does Taylor have good quality of life?
Does Jordan have good quality of life?
Is Taylor in good shape?
Is Jordan in good shape?
Does Taylor have good health?
Does Jordan have good health?
Is Taylor fit?
Is Jordan fit?Q1(15 pts). Write the following facts in Prolog.
If a person exercises regularly or has a healthy diet, then they are fit.
If a person is fit and gets enough sleep, then they have good health.
If a person does not exercise regularly but has a healthy diet, then they are in good
shape.
If a person is in good shape and manages stress well, then they have a good quality of
life.
If a person has good health and avoids junk food, then they are energetic.
If a person is energetic and participates in sports, then they are athletic.
Taylor exercises regularly, gets enough sleep, and avoids junk food.
Jordan has healthy diet, avoids junk food, manages stress well, and participates in
sports.
You should use SWI Prolog software to write your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!