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.
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.
Language: Python The ideal gas law is a mathematical approximation of the behavior of gasses as...
deal gases obey the equation PV - nRT where P is the pressure of he gas, volum, sthe sunbet of moles of gas, T is its temperature, and the constant R-8.314 KPa-liters mol1 kelvin (a) Find the exact change in volume of o, gas as the pressure increases from 12.00 to 12.01 KPa, decreases from 300.0 to 299.9 degrees kelvin, and the number of moles of 0, gas changes the temperature moles. Round the final answer to three decimal places....
1.A weather balloon contains 1.10X10^5 moles of He, an ideal gas. At standard pressure, the volume of the balloon is 2.70X10^6 L. what is the temperature of the He in the balloon in C? 2. Scuba divers breath a mixture of helium and oxygen gasses for dives in excess of 150 feet. If 15.68 grams of oxygen gas and 7.60 grams of helium gas are both added to a 5.00 L SCUBA tank at room temperature, what will be the...
The Ideal Gas Law is given by the equation:pv=nrt Where: p = pressure v = volume n = moles t = temperature in Kelvin In order to solve for the volume, V, you must multiply both sides of the equation by the same expression: PV x ___=nRT X __ The resulting equation is: V=? In order to solve the equation above for , you must multiply both sides of the equation by the same expression: a=b/c ax_?_=b/c x _?_ The...
deal gases obey the equation PV nRT, where P is the pressure of the gas, V is its volume, n is the number of moles of gas, T is its temperature, and the constant R-8.314 KPa-liters-mol-1 kelvin-1 (a) Find the exac t change in volume of O, gas as the pressure increases from 12.00 to 12.01 KPa, the temperature decreases from 300.0 to 299.9 degrees kelvin, and the number of moles of 0, gas changes from 1.03 to 1.01 moles....
The temperature of an ideal gas with a volume of 105.0mL is increased from 35∘C to 130∘C. Assuming the volume and number of moles of gas are held constant, what is the ratio of final pressure to initial pressure? use -273.15 degrees Celsius for absolute zero.
deal Gas Law: PV nRT R-0.0821 L.atm/mol.K Mole Fraction: ot ensity version of Ideal Gas Law: Dalton's Law of Partial Pressures RT How many moles of gas does it take to occupy 120 liters at a pressure of 2.3 atmospheres and a temperature of 340 K? 1. 2. IfI have a 50 liter container that holds 45 moles of gas at a temperature of 200°C, what is the pressure inside the container? 3. According to the above reaction, what volume...
Please answer all parts of the question: a,b,c,d
Ideal Gas Law The ideal gas law states that PV = Nk T where P is the absolute pressure of a gas, V is the volume it occupies, N is the number of atoms and molecules in the gas, and T is its absolute temperature. The constant kg is called the Boltzmann constant and has the value kg = 1.38x10-29 J/K. A very common expression of the ideal gas law uses the...
I am using the program Python Define a function named volume_ideal_gas. It consumes 3 arguments pressure, num_moles and temperature and returns the volume, measured in Liters, of the ideal gas according to the Ideal Gas Law. You may assume that the pressure argument is measured in atm and temperature argument is measured in Kelvin. PV = nRT Where: P is pressure measured in atm V is volume measured in L n is the number of moles R = .0821 atm⋅L...
1 of 20 ned t Introduction to the Ideal Gas Law Part B A 200 L gas cylinder is iled with 8.00 moles of gas. The tank is stored at 27C What is the pressure in the tank? Learning Goal: To apply the ideal gas law to problems inwolving temperature, pressure, volume, and moles of a gas Express your answer to three significant figures and include the appropriate u Hints The lour properties of gases (pressure P. volume V temperature...
1.Ideal Gas Law PV = nRT with atm: R = 0.0821 L*atm/(K*mol) If I have 4 moles of a gas at a pressure of 5.6 atm and a volume of 12 liters, what is the temperature? 2. If I contain 3 moles of gas in a container with a volume of 60 liters and at a temperature of 400 K, what is the pressure inside the container? 3. If I have 7.7 moles of gas at a pressure of 0.09...