Prolog List Processing -


I would like to define a list (bank customer list) and process the list using some rules.

For example, I have an explanation of this customer

  Customer (Peter, Bank (MacCon), Customist (Individual), Citizen (Malaysia), Age (62 ), Credit (50000), income (4500), property (car), bank employee (no)). Customer (Mary, Bank, Customstrip (VIP), Citizen (other), Age (45), Credit (20000), Income (5000), Property (home), Bank employee (Yes)).  

I want to add them to a list in the program inside the source code.

Then, I would like to evaluate the list that the element in the list fulfills a particular rule Example: Whether the items accept the loan, even if the second item (customer) has less interest (name, Guarantor, Loan type, Loan amount, Loan set): - Customer (name, bank), Type of custom (_), Citizen (CI), Age (age), Credit (name, guarantee, loan type) C), Income I), Property (_), Bank Worker (_), CI == 'Malaysian, Age & gt; = 18, C & gt; 500, i & gt; (Loan amounts / loanage) / 12; Recycler (Guarantor, Name), EisperanceOlon (Loan Type, Loan Amount, Loan Tenture); Ishouseloan (LoanType, LoanAmount, LoanTenure); Isbusinessloan (LoanType, LoanAmount, LoanTenure); Iscarloan (LoanType, LoanAmount, LoanTenure). Issiningoffer (name, loan amount, credit identification): - isloanaccept (name, loan amount, loan set), issuing citizen (name).

I have to program them at a higher level

please help

thanks

< To place all the customs in a list, you can type bagof ():

  

> Bagf ([Name, Bank, Type, Seat, Age, Credit, Inc, Prop, BAP], Customer (Name, Bank, Type, City, Edge, Credit, Inc)

A list should be made ( customer ), where the properties of the client given in each element are.

I do not get question 2: -)


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -