Answer:
Written in Python
P = float(input("Pressure: "))
T = float(input("Temperature: "))
n = float(input("Amount of Gas: "))
R = 8.314
V = (n * R * T)/P
print("Volume: "+str(round(V,2)))
Explanation:
The next 3 lines prompts user for inputs of Pressure, Temperature, Amount of Gas
P = float(input("Pressure: "))
T = float(input("Temperature: "))
n = float(input("Amount of Gas: "))
This line initializes constant R
R = 8.314
This line calculates volume
V = (n * R * T)/P
This line prints volume, rounded up to 2 decimal places
print("Volume: "+str(round(V,2)))