J
JeffJak
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;
}
but i dont know how to do the next steps..
can u just show me the next step to calculate the "next 200cm" and i
will try to continue on myself.
Thanks in advance.!!
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;
}
but i dont know how to do the next steps..
can u just show me the next step to calculate the "next 200cm" and i
will try to continue on myself.
Thanks in advance.!!