Question: ITCS 4 4 0 Assignment - I a ) Write a prolog program to show the summation of even numbers, odd numbers and the total
ITCS
AssignmentI
a Write a prolog program to show the summation of even numbers, odd numbers and the total numbers in a given list.
Example
b Given the following English text, convert it to prolog facts and rules
FACTS
charlie studies csc
olivia studies csc
jack studies csc
arthur studies csc
kirke teaches csc
collins teaches csc
collins teaches csc
juniper teaches csc
RULE
is a professor of if
teaches and studies
Run the program to answer the following Queries
charlie studies what? OR
What does charlie study?
Who are the students of professor kirke.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
