943,097 Members | Top Members by Rank

Ad:
Feb 8th, 2010
0

prolog programming help urgent!!!!

Expand Post »
i have received this assignment that i need to complete by wednesday and i havent started.

basically i have a .pl file with a movie database and i am required to answer the following.

1. COURSEWORK: There is a game that can be played whereby people try to work out the “degrees of separation” between two Hollywood actors. This is achieved by working out all of the actors who co-star in films together and thereby connect actor X and actor Y. This project involves writing PROLOG rules to extract information from a database including a test to see if a list of films can be linked in a similar way.

An online movie database is supplied that stores a number of films along with the starring cast. It will be of the form of the following PROLOG rules:

starsin(filmA, actorX).
starsin(filmB, actorX).
starsin(filmB, actorY).

starsin(filmC, actorZ).

There is also a list of facts reflecting how much money each film made of the form:

takings(filmA, amount).


Part 1 – Annotated Code (Total marks: 20%)

Given this database, write PROLOG rules to carry out the following tasks:

a) Do actors S1 and S2 costar in any films? If so, return true, otherwise return false [3%]

b) Did film F1 make more money than film F2? If so, return true, otherwise return false [3%]

c) Is there a star that links films F1 and F2 (in other words is there a star who appears in both)? If so, return true, otherwise return false [3%]

d) Given a list of films, are they in order of money they made? If so, return true, otherwise return false [3%]

e) Given a list of films, how much money did they all make? [3%]

f) Given a list of films, can they be linked by a set of stars? For example, Men in Black can be linked to The Cable Guy with through the following stars: [Smith and Jones costar in Men in Black], [Jones and Carrey costar in Batman Forever], [Carrey and Broderick costar in The Cable Guy]. [5%]

[Maximum length: 3 pages for code and annotation].
The marking of your code implementation will be based on three aspects: (i) Code Functionality (ii) Readability; and (iii) Annotation
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sepehr_sz is offline Offline
1 posts
since Feb 2010
Feb 8th, 2010
0
Re: prolog programming help urgent!!!!
Maybe so, but I see nothing urgent at all from where I'm sitting.

http://www.daniweb.com/forums/announcement14-2.html
What is sorely lacking however is any sign of effort on your part - that is, more than being able to use ctrl-c and ctrl-v.
Team Colleague
Reputation Points: 5862
Solved Threads: 949
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Feb 10th, 2010
0

Concerning.

I have been brought to this thread after accusations of plagiarism.
We have been told you are a Brunel student, and as you know, what you are doing is classified as cheating. Your IP address is being looked into, and this will be confirmed with our network, I suggest you come foward before we have to go through all this hassle of chasing you.

Stephen Swift.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Stephen Swift is offline Offline
1 posts
since Feb 2010
Feb 10th, 2010
0
Re: prolog programming help urgent!!!!
I have been brought to this thread after accusations of plagiarism.
We have been told you are a Brunel student, and as you know, what you are doing is classified as cheating.
Yes! Finally a teacher who's smart enough to use google! This is great and you rock! Perhaps this is the first step in stopping the endless amount of clueless, lazy students trying to get a homework freebie on a internetforum.

Your IP address is being looked into, and this will be confirmed with our network.
I could give you that information, but I won't. Privacy is very important to me. Please contact either Dani or Davey and they'll know how to go from here.

Happy huntin'
Last edited by Nick Evan; Feb 10th, 2010 at 5:50 pm.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Server Tracking
Next Thread in Computer Science Forum Timeline: Principles of Programming Language: Assertions and weakest pre/post-conditions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC