translated into lingo:
---------
global oldWeight, newWeight,oldPrice,newPrice
--given
oldWeight=0.5
oldPrice=49
findPrice (o.5, 49, 3)
--
on findPrice oldWeight, oldPrice, newWeight
newPrice=( (newWeight * oldPrice) / oldWeight) )
end
----------
> Hi!
> I would like to find out the price of an item or better a number of
> this items accordingly to their weight.
> In other words looking at the table below:
>
> 0.5kg = $49.00
> 1kg = 63.70
> 1.5kg = 78.35
> 2kg = 93.00
> 5kg = 165.45
> 10kg = 275.00
> 15kg = 375.10
> 20kg = 468.45
>
> how can I know the price of an order that weight 3kg or and order
> that weight 12.3kg.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]