home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
c
/
cat0301.zip
/
METZ1_7.QSX
/
METZ1_7.QSN
Wrap
Text File
|
1991-12-18
|
868b
|
22 lines
c:this is problem 1.7 from Metz/2nd Ed
p:1
t:0.01
r:$vol1:42.0+10.0*random
r:$temp1:25.0+0.1*random
r:$pres1:760.0+10.0*random
r:$vol2:62.0+10.*random
c:$vol2 should be chosen larger than $vol1 for this problem
r:$pres2:780.0+10.0*random
c:$pres2 should be chosen larger than $pres1 for this problem
q:A $vol1 liter sample of gas at $temp1 degrees C and $pres1 mm Hg is
q:expanded to $vol2 liters and the pressure is increased to $pres2.
q:Calculate the final temperature of the gas.
a:($temp1+273.16) * ($pres2/$pres1)*($vol2/$vol1)
e1:($temp1+273.16) * ($pres1/$pres2)*($vol2/$vol1)
e21:Did you get your pressure mixed up?
e1:($temp1+273.16) * ($pres2/$pres1)*($vol1/$vol2)
e21:Did you get your volumes mixed up?
e1:$temp1 * ($pres2/$pres1)*($vol2/$vol1)
e21:Did you forget to convert from Centigrade to Kelvin?
h:p(1)V(1)/T(1) = p(2)V(2)/T(2)