hw4 - Programming Assignment 4 ENGR 3, Summer Session B...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Programming Assignment 4 ENGR 3, Summer Session B 2006 Due: Tuesday, September 5 11:59pm Instructions: Complete the following parts. Turn these programs in using the command: “turnin hw4@engr3 idealgas.m container.m tank.m aero.m” Part A (10 points)  Name your script file  idealgas.m Engineers often need to estimate the pressure exerted by a gas in a container.  The  ideal gas law  provides one way of making the estimate.  The law is P = nRT V Equation 1. The ideal gas law More accurate estimates can be made with the  van der Waals  equation: P = nRT V nb an 2 V 2 Equation 2. Van der Waals equation where the term  nb  is a correction for the volume of the molecules, and the term  an 2 / V 2 is a  correction for molecular attractions.  The values of  and  depend on the type of gas.  The gas constant  is  R,  the  absolute  temperature is  T,  the gas volume is 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw4 - Programming Assignment 4 ENGR 3, Summer Session B...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online