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

  Database for university keep track of its course offerings

Assume you are making a database to help university keep track of its course offerings. You might have following entities in database, as they are distinct items in real life.

  Method to change column name

Hhow can you change column name or what is a different way to write statement in SQL so it displays the amount column as money.

  Er diagram and database schema

To analyse and comprehend a provided ER diagram and Database Schema and implement a database based on the provided ER diagram and Database Schema

  Provide an expression in relational algebra

Provide expression in relational algebra for each of the following queries: Give all the managers in database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  Determine the commissions paid to specific employees

Design a query that will allow the finance department to determine the commissions paid to specific employees of the sales department for the month of December.

  Design update trigger on part table which raises error

Design the Update trigger on Part table which raises an error string if Count field of updated row has a higher value than value prior to Update.

  What messages are sent if not well-formed

Create new DOM documents for each of your .xml file and .xsl file. Use these to generate output to the browser.

  Draw relational schema and show functional dependencies

Draw relational schema and show functional dependencies Comprehensive schema that shows existing PK and all functional, partial and transitive dependencies Detailed schema that shows existing PK and most functional, partial and transitive dependen..

  Find the entities from the functional requirements

Find the entities from the functional requirements. Entities can come from Nouns in the text, they may also come from forms, reports and legacy code.

  Explain how to develop a project charter

Using the above scenario, develop a project charter. Include the problem statement, justification for the project, and how the project will be measured for success.

  Create the table for the relation training courses

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  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