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.

  How to change content in order for new list

To what kind of list would you change it? What would you require to change about content in order for new list type to be effective for purpose of list?

  Develop a complete system

The assignment will be chosen by the individual student with my approval. An ideal assignment will be one which involves at least four entity sets, but not too many since there will be critical time pressure to complete the assignment.

  Query using a literal character string

query specifying specific columns query using a column alias query using the concatenation operator query using a literal character string

  Create a database from scratch

Create a database from scratch that contains, at a minimum, the elements listed below

  Explain evaluating a proposal for acquisition and sourcing

When evaluating a proposal for acquisition and sourcing, are there considerations that are unique in the case of an IT project versus a non-IT project

  Create a database design specification

The Enhanced Entity Relationship Diagram (EERD) produced with a drawing or case tool. Your EERD must use a 'standard' notation style such as Crows Foot or Chen.

  List all the functional dependencies present in the relation

You must implement the entity relationship model provided in the model solution to Assignment 1. The model solution will be released on the course website approximately TWO (2) weeks after the Assignment 1 due date.

  Create query that spans both tables

Create a query that spans both tables. Eliminate redundant fields. Modify the Query to select only those Customers that had service dates in October and November 2006.

  Write problems and issues related with internet databases

Write down some of problems and issues related with internet databases? Consider security, performance, architecture issues.

  Description of the relationship represented by scatterplot

Produce a scatterplot of Rent vs. Size (square meters of the apartment) for the rental data in rent.

  List course along with names of students from database table

List the courses (D-code and C-no), along with the names of the students who are currently taking them. List all the courses (D-code and C-no) that John (i.e., S-Name=''John'') got 'A' grade.

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