Prolog Combine Rule -


I must write a rule that contains sub rules I

How to get any ideas for? (Name, loan amount, loan identification): - Customer (name, bank (_), type of type (_), citizen (Malaysia), age (age), credit (c), income (i), property | Home)), age & gt; = 18, C & gt; 500, i & gt; (Loan amount / loan tenure) / 12. Low interest (senior): - Isiatic citizen (senior)

For example, I have to check the customer type. If customer type VIP, interest is low if age is above 60 years then interest is low

please help

thanks isloanaccept probably the easiest way is. (Name, loan amount, loan check, interest): - Customer (name, bank (_ ), Custom Type (Type), Citizen (Malaysia), Age (Age), Credit (C), Income (I), Property (Car | Home)), Age & gt; = 18, C & gt; 500, i & gt; (Loan Amount / Loan Trencher) / 12, Interest (Age, Interest). % Interest based on age and cast type; To be interested in the interest set by other factors (age, type, interest), add parameters or pass in a list: - (Senior Citizen (Age) -> Interest = 0.05; Type = VIP -> Interest = 0.07; interest = 0.10)

PS: Please try formatting the code in this way, which makes it very easy to read.


Comments