## Java Pressure / Volume Calculator

Simply put in the starting depth, the starting volume, the starting temperature, the second depth and temperature, then
click on the Calculate button. The program will calculate the ending volume for you. You may choose to
calculate for either fresh or salt water by using the options above the compute button.

Note: We have defaulted the starting depth to 0 and the starting volume to 1 if you do not input numbers into these fields.
Also if you leave the temperatures blank, they will default to 70 F. Since they will be the same as each other, it will not affect
the final answer. (See Charles' Law.)

(Temperature is in Degrees F, Depth in Feet)

The above calculator functions using Java Script language to solve problems of pressure/volume relationships according to Boyle's Law.

To calculate the answer it uses the following formula:

(P1 X V1) / T1 = (P2 X V2) / T2

For additional information on this formula, refer to Boyle's Law of Gases. Or you might want to review all of the Gas Laws.