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
Text File  |  1991-12-18  |  868b  |  22 lines

  1. c:this is problem 1.7 from Metz/2nd Ed
  2. p:1
  3. t:0.01
  4. r:$vol1:42.0+10.0*random
  5. r:$temp1:25.0+0.1*random
  6. r:$pres1:760.0+10.0*random
  7. r:$vol2:62.0+10.*random
  8. c:$vol2 should be chosen larger than $vol1 for this problem
  9. r:$pres2:780.0+10.0*random
  10. c:$pres2 should be chosen larger than $pres1 for this problem
  11. q:A $vol1 liter sample of gas at $temp1 degrees C and $pres1 mm Hg is
  12. q:expanded to $vol2 liters and the pressure is increased to $pres2.
  13. q:Calculate the final temperature of the gas.
  14. a:($temp1+273.16) * ($pres2/$pres1)*($vol2/$vol1)
  15. e1:($temp1+273.16) * ($pres1/$pres2)*($vol2/$vol1)
  16. e21:Did you get your pressure mixed up?
  17. e1:($temp1+273.16) * ($pres2/$pres1)*($vol1/$vol2)
  18. e21:Did you get your volumes mixed up?
  19. e1:$temp1 * ($pres2/$pres1)*($vol2/$vol1)
  20. e21:Did you forget to convert from Centigrade to Kelvin?
  21. h:p(1)V(1)/T(1) = p(2)V(2)/T(2)
  22.