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

Reference no: EM13327380

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.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

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

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd