stacking a pile of different size blocks
eating a pizza
acquiring a bicycle (by any means!)
opening a bank account
rule 1 [temperature in sun is ?val];add([apply suntan lotion screening factor
^
(val/10)]);endrule;
How would you stop this rule repeating? The calculation probably works plausibly for temperatures between about 80 and 100 degrees Fahrenheit; but is ludicrously wrong for temperatures lower than that. How would you modify the calculation?
changes(Old_Fact, New_Fact
)
but without using, in the body of the procedure, the commands add and remove.