Help please!...



Who I do this exercise in PROLOG:

REFRIGERATOR:
- Sets a basic fact of items, goods, where each item must have a
volume
and an associated cost.
- Set a model refrigerator with a capacity in liters.
- Create the following rules:
verify the amount of volume of items is greater or less than the
refrigerator, and
if so send a message.
identify the consumer's refrigerator. The refrigerator consumes
12kw / h with 30% of its
capacity being used. ¡The consumption depends on how much space is
being
used for the goods stored in the refrigerator.
show the total value of products is £ in the refrigerator.
Send a message to buy a new refrigerator if it is being
used more than 90% of the capacity of the refrigerator. Otherwise show
the river ¡
Message: ok, refrigerator with good use.


Thank.

Edu . Brazil.
.



Relevant Pages

  • Re: Help please!...
    ... Set a model refrigerator with a capacity in liters. ... The refrigerator consumes ... used for the goods stored in the refrigerator. ...
    (comp.lang.prolog)
  • Re: Store old Lithium ion batteries in refrigerator?
    ... :I dunno, but regular refrigerator temp won't be too cold, at least. ... :> I have a few spare used cell phone Li-ion batteries that I may want to ... I haven't checked the capacity, but one or 2 seem to go dead ... I keep my li-on rechargables stored in the refrigerator at 40% charge. ...
    (sci.electronics.basics)
  • Re: Pb Acid Trickle Maintenance
    ... charge them, then put them in a refrigerator for storage. ... the capacity typically drops a fair amount from year to year. ...
    (sci.chem.electrochem.battery)