diff options
Diffstat (limited to '172/CH3/EX3.8/ex8.sce')
-rwxr-xr-x | 172/CH3/EX3.8/ex8.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/172/CH3/EX3.8/ex8.sce b/172/CH3/EX3.8/ex8.sce new file mode 100755 index 000000000..565eb5815 --- /dev/null +++ b/172/CH3/EX3.8/ex8.sce @@ -0,0 +1,10 @@ +//example 8
+//calculating mass of air
+clear
+clc
+P=100 //pressure in kPa
+V=6*10*4 //volume of room in m^3
+R=0.287 //in kN-m/kg-K
+T=25 //temperature in Celsius
+m=P*V/(R*(T+273.2)) //mass of air contained in room
+printf("\n hence, mass of air contained in room is m = %.3f kg. \n",m)
\ No newline at end of file |