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

  Create database of measured meteorological data

You are creating a database of measured meteorological data for use in weather and climate research. Explain a structure type measured_data_t with components site_id_num.

  Suggest a learning algorithm for the problem

What is required to defi ne a well-posed learning problem ?

  Write a recursive sql query

MCIS 630 Database Systems: -  Write a recursive SQL query that outputs the names of all subparts of the part with part-id “P- 100”.

  Describe binary lock function

Describe relationships with example. Also illustrate degree of relationship for that example. What do you mean by locks. Write dow a binary lock function.

  Use javascript to ensure that an entry has been made

When the database is set up it should be populated with the data that you have chosen. Display this data as part of your documentation. Each table should have from 3 to 6 records initially.

  What is the key for r

What is the key for R? Decompose R into 2NF, then 3NF relations and what you know about the relation to show that this MD cannot violate 4NF

  Map the eer schema into a set of relations

Map the EER schema into a set of relations. For the VEHICLE to CAR/ TRUCK/ SUV generalization, consider the four options presented

  Create a struct data structure for each file contained

Write a password protected console-based application, which enables you to create user accounts and specify the name of the file or directory to be shared with other users.

  Describe the content, purpose, user access methods

describe the content, purpose, user access methods, and sources of data

  Compute canonical cover for set of functional dependencies

Compute a canonical cover for the above set of functional dependencies (show each step of your derivation with an explanation).

  Write sql select statements to retrieve

How many models of the Titanic have been shipped? What was the date of the first shipment and when was the last shipment sent - Write SQL SELECT statements to retrieve

  Explain why it is important to record information

You have just received a new computer at work. it runs fast and works great. thinking about the future and the day something might break explain why it is important to record this information.

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