summaryrefslogtreecommitdiff
path: root/1913/CH2/EX2.1/ex1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1913/CH2/EX2.1/ex1.sce')
-rwxr-xr-x1913/CH2/EX2.1/ex1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1913/CH2/EX2.1/ex1.sce b/1913/CH2/EX2.1/ex1.sce
new file mode 100755
index 000000000..e089ad519
--- /dev/null
+++ b/1913/CH2/EX2.1/ex1.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Input data
+h1=60;//The heat transfer in the process in kJ
+h2=-8;//The heat transfer in the process in kJ
+h3=-34;//The heat transfer in the process in kJ
+h4=6;//The heat transfer in the process in kJ
+
+//Calculations
+Q=h1+h2+h3+h4;//Net work transfer in a cycle in kJ
+
+//Output
+printf('Net work transfer in a cycle Q = %3.0f kJ ',Q)