Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Instruction: The problems given in the following are both writing and programming exercises. ALL answers should be written legibly in pen. Programming exercise should be

image text in transcribed
Instruction: The problems given in the following are both writing and programming exercises. ALL answers should be written legibly in pen. Programming exercise should be done in online prolog tool. You have to run your program in the class, and show the output to the instructor. Home work should be turned in class on due dates. 1. Consider the following graph of possible flights between seven US cities. Omaha Seattle Albany Boston Fresno Dallas Atlanta Each edge from a vertex X to a vertex Y represents that there is a flight between city X to city Y. a) Create a database that contains all the facts given in the above graph. (9 points) b) Design Five simple queries and compute answers from the database. (5 points) c) Design Five queries with single variable and get answers from the database. (15 points) d) Design Five queries with two variables and obtain answers. (15 points) coded as a Prolog Instruction: The problems given in the following are both writing and programming exercises. ALL answers should be written legibly in pen. Programming exercise should be done in online prolog tool. You have to run your program in the class, and show the output to the instructor. Home work should be turned in class on due dates. 1. Consider the following graph of possible flights between seven US cities. Omaha Seattle Albany Boston Fresno Dallas Atlanta Each edge from a vertex X to a vertex Y represents that there is a flight between city X to city Y. a) Create a database that contains all the facts given in the above graph. (9 points) b) Design Five simple queries and compute answers from the database. (5 points) c) Design Five queries with single variable and get answers from the database. (15 points) d) Design Five queries with two variables and obtain answers. (15 points) coded as a Prolog

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_2

Step: 3

blur-text-image_3

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students explore these related Databases questions