×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Logic exercises

Logic exercises

Logic exercises

(OP)
Hi. I need your help for 2 logic exercises. I need it in Prolog.

First:
Lion lies on monday, Tuesday, wednesday and
Tiger lies on thursday, friday and saturday.
A man goes to the jungle and talks to the tiger
tiger says that "i lied yesterday" and lion also says that "i lied yesterday" what is the day today?
Answer is Thursday.

Second:
In one family has 5 children: 4,5,6,7,8-years old with other talants. One of them is Lisa, other play the piano.
1. Jane is 4 years old and don't understand Math.
2. The child, who is a programmer is one-year bigger than George.
3. The child, who play the guitar is 7 years old.
4. Ashley isn't 8 years old.
5. Mike is 5 years old and he is lesser than this, who understant literature.

Please need it fast and sorry for my bad english! :)

RE: Logic exercises

I need what you tried to be able to help you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close