Question: Language: Python The ideal gas law is a mathematical approximation of the behavior of gasses as pressure, volume, and temperature change. It is usually stated

Language: Python

The ideal gas law is a mathematical approximation of the behavior of gasses as pressure, volume, and temperature change. It is usually stated as:

PV = nRT where P is the pressure in pascals, V is the volume in liters, n is the amount of substance in moles, R is the ideal gas content, equal to 8.314 (J/mol K), and T is the temperature in degrees kelvin.

Write a program that computes the amount of gas in moles when the user suppliesthe pressure, volume and temperature. Test your program by determining the numberof moles of gas in a SCUBA tank. A typical SCUBA tank holds 12 liters of gas ata pressure of 20,000,000 Pascals (approximately 3,000 PSI). Room temperature isapproximately 20 degrees Celsius or 68 degrees Fahrenheit.

Hint: A temperature is converted from Celsius to Kelvin by adding 273.15 to it. To convert a temperature from Fahrenheit to Kelvin deduct 32 from it, multiply it by 5 and then add 273.15 to it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!