Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started