summaryrefslogtreecommitdiff
path: root/2339/CH1/EX1.1.7
diff options
context:
space:
mode:
Diffstat (limited to '2339/CH1/EX1.1.7')
-rwxr-xr-x2339/CH1/EX1.1.7/Ex1_7.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2339/CH1/EX1.1.7/Ex1_7.sce b/2339/CH1/EX1.1.7/Ex1_7.sce
new file mode 100755
index 000000000..61849dd79
--- /dev/null
+++ b/2339/CH1/EX1.1.7/Ex1_7.sce
@@ -0,0 +1,11 @@
+clc
+clear
+
+m=2; //mass in kg
+T1=30+273; //Temperature in K
+T2=60+273;
+Cp=4.187;
+T=T2/T1;
+X=double(log(T));
+S=m*Cp*X;
+printf('Entropy Change of Water: %1.4f kJ/K',S);