Question

Language: Python The ideal gas law is a mathematical approximation of the behavior of gasses as...

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.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

def amountofgas():
P=20000000
V=12
T=293.15
R=8.314
n=(P*V)/1000
n=n/R
n=n/T
return n
print(amountofgas())

Please upvote if you found this solution useful and comment for any doubts.

Add a comment
Know the answer?
Add Answer to:
Language: Python The ideal gas law is a mathematical approximation of the behavior of gasses as...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT