Question

Write a program to determine the mass (in grams) of oxygen gas (formula: O2, molecular weight...

Write a program to determine the mass (in grams) of oxygen gas (formula: O2, molecular weight = 32 grams per mole) in a container. You may assume that the user will provide the volume of the container in units of gallons, the temperature in the container in degrees Celsius, and the pressure in the container in units of atmospheres.

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

Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clc
clear all
V=input('Enter volume of container in units of gallons: ');
T=input('Enter temperature in deg celsius: ');
P=input('Enter pressure of container in units of atm: ');
R=0.082057;
M=32;
m=P*V*M/(R*T);

disp('The mass is')
m

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Write a program to determine the mass (in grams) of oxygen gas (formula: O2, molecular weight...
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