Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I`m desperately needing help! (Prolog puzzle)

Status
Not open for further replies.

JenniferKit

Vendor
Jun 9, 2003
1
BR
Hi!
I started studying prolog at college but I´m having difficulties...
I have to do this assigment until the end of the week but I do not know
where to begin! And the worst is that, I think, it is very easy...
Maybe some of you can help me!
Here it goes:

=========

In a national contest, there are 4 types of product:
Product 1, product 2, product 3 and product 4.
4 competitors: Comp1, comp2, comp3 and comp4. The 4 competitors last names are,
in no particular order: Last1, Last2, Last3 and Last4.

Facts:
-Comp1 with lastname Last1 didn't won using Product1. Product1 won the 4th prize.
-Last2, who won the 1st prize, is not Comp2.
-Comp3 won the 3th prize.
-Last3 used product Product2.
-Comp4 did not use product3.

========

I will be eternally grateful for your help!
Thank you very much!

Jennifer K.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top