How do i read in char type by user开发者_如何转开发s if they are a- , b+ , o+ ? I don\'t seem to have problem reading in char like a , b , c or d. i am using read(X) . Can someone help me out with thi
I want to add any strings user entered into a li开发者_JAVA技巧st run :- write(\'How many students you have: \'),read(x),nl.
I am trying to create some rules and facts on a certain situation. The situation is such that if a user owes money then he is said to be in debt after 5 days if it is not repaid, if he doesn\'t then h
I was wondering, I am aware you can use assert to add facts or rules or whatever if you have declared the predicate to be -:dynamic, but this only allows the changes that are made to be kept in that s
I want to write a rule in prolog, which basically says If a user X has not paid amount Y within 7 days then it will evaluate to payment_outstanding(X).
Okay, my last prolog question. It\'s the common geneaology problem. I am suppose to take a list of facts and have a function called descendant that
If i have two lists say A and B made upp of different letters. [b,a,c] in list A and [b,d,c,e] in list B
A simple question, how would I go about declaring a clause which would produce the number specified +1 +2 and +3? I have tried:
Okay, so I have another question on a prolog homework problemI am struggling with. The problem goes as follows:
I have heard that i开发者_JAVA技巧n Prolog, program and data are the same thing. What does that mean?Prolog source is just a list of rules. Some rules are just \"data\" - they are true without further