Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following facts are given: predicates /*name,distance,age,color,price*/ car(symbol,real,integer,symbol,integer) clauses car(chrysler, 130000, 3, red, 12000). car(ford, 90000, 3, gray, 25000). car(datsun, 8000, 1, blue, 30000). car(ford,

The following facts are given: predicates /*name,distance,age,color,price*/
car(symbol,real,integer,symbol,integer) clauses
car(chrysler, 130000, 3, red, 12000). car(ford, 90000, 3, gray, 25000). car(datsun, 8000, 1, blue, 30000). car(ford, 80000, 6, blue, 8000). car(datsun, 50000, 5, orange, 20000). car(toyota, 25000, 2, black, 25000).
Form the queries in Prolog language if you would like to find
image text in transcribed
(Question 1). a) The following facts are given: predicates /* name, distance, age,color,price* car(symbolreal, integer,symbol,integer) clauses car(chrysler, 130000, 3, red, 12000). car(ford, 90000, 3, gray, 25000). car(datsun, 8000, 1, blue, 30000). car(ford, 80000, 6, blue, 8000). car(datsun, 50000, 5, orange, 20000). car(toyota, 25000, 2, black, 25000). Form the queries in Prolog language if you would like to find: i)(2 points). all cars below 4 years old and with the price less than 20500, and color is not blue

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

4. Evaluation is ongoing and used to improve the system.

Answered: 1 week ago

Question

6. Effectively perform the managers role in career management.

Answered: 1 week ago