### Write a prolog program that implements a family database

Assignment Help Database Management System
##### Reference no: EM13327380

Write a PROLOG program that implements a family database for your family. Save it as an ordinary text file named family.pro. Your program should implement the following facts for your immediate family, grandparents, and great-grandparents.

parent_of(X,Y).
male(X).
female(Y).

That is, your database should consist of a number of facts about who is the parent_of of who, about which individuals are male and about which individuals are female. For example:

parent_of(joe,susie).
parent_of(joe,dan).
parent_of(mary,susie).
parent_of(mary,dan).
male(dan).
male(joe).
female(susie).
female(mary).

Attachment:- ASSIGNMENT.rar

#### Questions Cloud

 Which is the best type of worker for the firm to hire : Which is the best type of worker for the firm to hire? What does it mean for a wireless network to be operating : What does it mean for a wireless network to be operating in "infrastructure mode"? If the network is not in infrastructure mode, what mode of operation is it in, and what is the difference between that mode of operation and infrastructure mode? Find how much work is done on the hovercraft by the force : A hovercraft of mass 69.0 kg can move on a horizontal surface, the x-y plane. How much work is done on the hovercraft by the force during this time Determine what is the preferred project after four years : An entrepreneur has to decide between two possible investment projects. Both projects cost \$80.000 upfront. The short term project pays \$35.000 for the next three years. Write a prolog program that implements a family database : Write a PROLOG program that implements a family database for your family. Save it as an ordinary text file named family.pro. Your program should implement the following facts for your immediate family, grandparents, and great-grandparents. What is the value of the dipole moment : A dipole consists of charges +e and -e separated by 0.67 nm. It is in an electric field E = 2.2 × 104 N/C. What is the value of the dipole moment Determine what is the present value of the liability : Imprudential, Inc. has an unfunded pension liability of \$565 million that must be paid in 15 years. To assess the value of the firm's stock, financial analysts want to discount this liability back to the present. Determine what was the annual increase in selling price : Assume that in January 2010, the average house price in a particular area was \$278,400. In January 2000, the average price was \$195,300. Describe the normal forms violated in the design : Describe the normal forms violated in the following design and fix them to the third normal form.

### Write a Review

#### Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

#### Demodulator circuits and amplitude modulator

Explain how much the modulating signal power is required to generate 100 percent modulation? What is the approximate center frequency of filter required to pass the lower sideband?

#### Data modelling in organizational intelligence

Data Modelling (database) require 8 page essay covering the following subjects: Organizational Intelligence. It must specifically talk about organizational intellignece being outcome of organization's efforts.

#### Write command to list all employees in descending order

Write a command to list all the employees hired in 2003 and 2004. Sort the rows by the hire_date column in descending order.

#### To analyse and comprehend a provided er diagram

Display the item id and the difference between the default price and cost (ITECH5006 - together with a percentage markup) of all products.

#### Draw inheritance hierarchy to represent shoe object

Draw an inheritance hierarchy to represent a shoe object. The base class should have derived classes of Dress Shoes, Tennis Shoes and Boots.

#### Suggestions as to how to track down offenders

What are some suggestions as to how to track down offenders of these crimes you've identified - Computer crime has become a serious matter

#### Systems analysis and database design

Based on the information in the Bike Mania case study, use a suitable CASE tool or drawing package to draw up a set of diagrams showing the current physical view of the systemusing the unified modeling language (UML 2.0) notation

#### Describe each database being compared

You should briefly describe each database being compared. Then compare the databases based on their scalability functionality, and interoperability. Finally, make your recommendation based on yo comparison.

#### Write an sql query

Write an SQL query to get the author of the book "The Alchemist"

#### Explain data for each candidate of eight constituencies

supplies % of votes each candidate is likely to receive, based on popularity rating. Actual number of votes received is that percentage of General votes. You should enter data for each candidate in each of the eight constituencies.

#### What model would you use for this estimation

What model would you use for this estimation? How accurate would it be and how would you obtain the estimate?