summaryrefslogtreecommitdiff
path: root/3850/CH27/EX27.5/Ex27_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH27/EX27.5/Ex27_5.sce')
-rw-r--r--3850/CH27/EX27.5/Ex27_5.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3850/CH27/EX27.5/Ex27_5.sce b/3850/CH27/EX27.5/Ex27_5.sce
new file mode 100644
index 000000000..5664a75de
--- /dev/null
+++ b/3850/CH27/EX27.5/Ex27_5.sce
@@ -0,0 +1,22 @@
+
+//To Calculate the Internal Energy of 1 gram of oxygen at STP.
+
+//Example 27.5
+
+clc;
+
+clear;
+
+m=1;//Mass of Oxygen taken in grams
+
+M=32;//Molecular Weight of Oxygen in g/mol
+
+n=m/M;//Number of moles of Oxygen
+
+R=8.31;//Universal Gas Constant in J/mol-K
+
+T=273;//Temperature in Kelvin at STP
+
+U=int(n*((5/2)*R*T));//Internal Energy of Oxygen
+
+printf("Internal Energy of Oxygen=%d J",U);