8 kyu

Total pressure calculation

2,391 of 5,712FiveCrayFish973

Description:

Given the molecular mass of two molecules M1M_1 and M2M_2, their masses present m1m_1 and m2m_2 in a vessel of volume VV at a specific temperature TT, find the total pressure PtotalP_{total} exerted by the molecules. Formula to calculate the pressure is:

Ptotal=(m1M1+m2M2)RTV\LARGE P_{total} = {{({{m_1} \over {M_1}} + {{m_2} \over {M_2}}) R T} \over V}

Input

Six values :

  • M1M_1, M2M_2: molar masses of both gases, in  gmol1\ g \cdot mol^{-1}
  • m1m_1 and m2m_2: present mass of both gases, in grams (gg)
  • VV: volume of the vessel, in  dm3\ dm^3
  • TT: temperature, in  °C\ \degree C

Output

One value: PtotalP_{total}, in units of atmatm.

Notes

Remember: Temperature is given in Celsius while SI unit is Kelvin (KK).  0°C=273.15K\ 0\degree C = 273.15K

The gas constant  R=0.082dm3atmK1mol1\ R = 0.082dm^3 \cdot atm \cdot K^{-1} \cdot mol^{-1}

Fundamentals

Stats:

CreatedAug 23, 2018
PublishedAug 23, 2018
Warriors Trained11969
Total Skips318
Total Code Submissions10762
Total Times Completed5712
JavaScript Completions2391
Python Completions2915
C Completions563
Julia Completions40
NASM Completions18
Total Stars117
% of votes with a positive feedback rating66% of 952
Total "Very Satisfied" Votes539
Total "Somewhat Satisfied" Votes178
Total "Not Satisfied" Votes235
Total Rank Assessments4
Average Assessed Rank
8 kyu
Highest Assessed Rank
8 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • FiveCrayFish973 Avatar
  • JohanWiltink Avatar
  • Blind4Basics Avatar
  • rowcased Avatar
  • hobovsky Avatar
  • stellartux Avatar
Ad