Hello to all, i need to design a rules which test a loan is a car loan or not.
carLoan(flexiCar,minLoanAmount(20000),maxTenure(12) ).
iscarloan(X, Y, Z) :- carLoan(X, Y >= minLoanAmount(20000), Z =<(maxTenure(12)) ).
iscarloan(X, 25000, 10).
I need to test the Y and Z variable against the structure from the fact inside the rule.
Ho...
Hello to all, i need to write a rule which consists of sub rule.
Any idea how to achieve this ?
isloanaccept(Name, LoanAmount, LoanTenure)
:- customer(Name, bank(_),customertype(_),
citizen(malaysian),age(Age),credit(C),
income(I),property(car|house)),
Age >= 18,
C > 500,
I > (LoanAmount / LoanTenure) / 12.
lo...
Hi
I have an iPhone project which heavily uses sound samples and Open AL. Sound samples in it's original form are aifs. For Open AL I need cafs. So to keep things simple I've decided to move conversion procedure into custom build rule of XCode project.
There is a brilliant article right about this task http://www.henryflurry.com/news/fil...
Hello to all, i have define a rule with or operator but it return multiple true or false.
isloanaccept(Name,Guarantor,LoanType,LoanAmount,LoanTenure)
:- customer(Name,bank(_),customertype(_),
citizen(Ci),age(Age),credit(C),
income(I),property(_),bankemployee(_)),
Ci == 'malaysian',
Age >= 18,
C > 500,
I > (LoanAmount / Loa...
Hey all,
Can anyone point me to an fxcop rule for identifing "string ==" usage. For example:
string s = "abc";
if (s == "def") {
// do somethign
}
I want the "if" statement raised as an error. Roughly speaking I want to always be using string.compare with the appropriate culture.
Thanks!
...
I am writing a Makefile, and I want to use a generic rule with wildcards, like
%: bkp/%
cp $< $@
But I wanted this rule to be valid only for a few specific files. I wanted to define a variable with the list, for example
file_list = foo.c bar.c zzz.c
and configure the rule so it is only valid for files that are listed in this var...
TL;DR: Need help calling a rule with a fact
I´ve started out with prolog, coming from C and got stuff working... until they evidently got broken. I´m writing a small car-paint program for myself as I´m learning this new language
Im trying to call a rule with a fact (is this possible?), what I want to do is use one fact "cars" and anothe...