1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
iVinArrow [24]
3 years ago
3

Define a function computegasvolume that returns the volume of a gas given parameters pressure, temperature, and moles. use the g

as equation pv = nrt, where p is pressure in pascals, v is volume in cubic meters, n is number of moles, r is the gas constant 8.3144621 ( j / (mol*k)), and t is temperature in kelvin. all parameter types and the return type are double.
Physics
2 answers:
raketka [301]3 years ago
8 0

Answer:

Incomplete question, we are given the starter code below

Explanation:

The starter code given

gas_const = 8.3144621

def compute_gas_volume((gas_pressure,,gas_temperature,gas_moles):

gas_pressure = 100.0

gas_moles = 1.0

gas_temperature = 273.0

gas_volume = 0.0

gas_volume = compute_gas_volume(gas_pressure, gas_temperature, gas_moles)

print('Gas volume:', gas_volume, 'm^3')

Then, we will want to print

pv = nrt

Gas volume is

v = nrt/p

v = n×r×t ÷ p

So to compute v, we use

public static void main(String args[]){

final Double R = 8.3145;

Double pressure;

Double volume;

Double n;

Double temperature;

System.out.println("What is the number of moles?

n = scan.nextDouble();

System.out.println("What is the tempertaure in K?

temperature = scan.nextDouble();

System.out.println("What is the pressure in atm?

pressure = scan.nextDouble();

volume=(n*R*temperature)/pressure

System.out.println("The volume is " + volume + " m^3 or L");

Since we are already given the value of the parameter. Then, we can write the code as follow

gas_pressure = 100.0

gas_moles = 1.0

gas_temperature = 273.0

gas_volume = 0.0

gas_volume =

GAS_CONST = 8.3144621

defcompute_gas_volume(gas_pressure, gas_temperature, gas_moles):

return gas_moles * GAS_CONST * gas_temperature / gas_pressure

user100 [1]3 years ago
5 0

Answer:

Refer below.

Explanation:

A function can be characterized as a connection wherein one thing is reliant on another for its worth.

Clarification: Given R = 8.314J/mol*k

PV = nRT

V = nRT/P

V = 8.314RT/P (cm^3)

Volume of gas =(( 8.314 * R* T)/P ) cm3

You might be interested in
A lady holds a large concave mirror of focal length 1.8m from her face.State two characteristics of her image in the mirror.​
Vlada [557]

Answer:

reflection and refraction?

Explanation:

XOXO

Kit

6 0
3 years ago
The thinnest layer of the earth is the:
Serhud [2]

Answer:

crust

Explanation:

it's the outermost layer of the planet.

7 0
3 years ago
Read 2 more answers
What if Hinata got drunk like this in the Naruto Series?! What would you do?!
olga2289 [7]
AHHH BAHAHA imma die
4 0
3 years ago
Read 2 more answers
3. How did Kepler's work influence Newton?
Katarina [22]

Johannes Kepler and his laws were a great influence on Isaac Newton. ... Newton used his laws of gravity and motion to derive Kepler's laws and show that the motion of the planets could be explained using mathematics and physics.

3 0
3 years ago
Read 2 more answers
How would you describe a solution?
liberstina [14]

Answer: A solution is the end of a task.

Explanation:

4 0
3 years ago
Other questions:
  • Classify the items based on whether they are or are not matter. toothpaste, happiness, gasoline, sound, bacteria, cell
    5·2 answers
  • Consider a bicycle that has wheels with a circumference of 2 m. Solve for the linear speed of the bicycle when it's wheels rotat
    13·1 answer
  • Two identical isolated conducting spheres are picked for an experiment. Only one of them is charged. If the spheres are now brie
    7·2 answers
  • This is an organism which feeds on but usually does not kill a larger organism
    6·2 answers
  • When you attempt to swim, you brush your hands in a wide motion to push the water around you back behind you. This in turn, caus
    9·2 answers
  • An outside thermometer reads 57 f what is the tempature in C?
    11·2 answers
  • The speed of light in amber is
    11·1 answer
  • What is the current in a 120V circuit if the resistance is 20Ω?
    6·1 answer
  • a hairdryer is used for 600 seconds to dry hair. it has a 750 watt rating. how much work did the hairdryer do
    15·1 answer
  • Engineers are trying to improve a race car. Their goal is to increase the acceleration of the car using the same engine. Which c
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!