JeffJak wrote:
> Gas Used Rate
> First 100 cubic meters $5.00 minimum cost
> Next 200 cubic meters 4 cents per cubic meters
> Next 200 cubic meters 2 cents per cubic meters
> Above 500 cubic meters 1 cent per cubic meters
> I need to create a java to calculate this ^
> i only know for the first 100 cm
> (gas <= 100)
> {cost = 5.00;
> }
if (gas >= 100 and gas <= 200) and so on...
(the formulas for the next gas ranges will get more and more complicated)