summaryrefslogtreecommitdiff
path: root/3878/CH1/EX1.6
diff options
context:
space:
mode:
Diffstat (limited to '3878/CH1/EX1.6')
-rw-r--r--3878/CH1/EX1.6/Ex1_6.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3878/CH1/EX1.6/Ex1_6.sce b/3878/CH1/EX1.6/Ex1_6.sce
new file mode 100644
index 000000000..985f7a982
--- /dev/null
+++ b/3878/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,10 @@
+clear
+// Variable Declaration
+R=287// The specific gas constant in J/(kg K)
+m=5 // The mass of ideal gas in kg
+p=101.325// The atmospheric pressure in kPa
+T=273+25// The temperature of an ideal gas in K
+
+// Calculation
+V=(m*R*T)/(p*1000)// The volume of an ideal gas in m**3
+printf("\n The volume of an ideal gas is %0.2f m**3",V)