summaryrefslogtreecommitdiff
path: root/2870/CH6/EX6.1/Ex6_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH6/EX6.1/Ex6_1.sce')
-rwxr-xr-x2870/CH6/EX6.1/Ex6_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2870/CH6/EX6.1/Ex6_1.sce b/2870/CH6/EX6.1/Ex6_1.sce
new file mode 100755
index 000000000..beb135e2c
--- /dev/null
+++ b/2870/CH6/EX6.1/Ex6_1.sce
@@ -0,0 +1,12 @@
+clc;clear;
+//Example 6.1
+
+//givrn data
+QH=80;
+QL=50;
+
+//calculations
+Wnet=QH-QL;
+disp(Wnet,'net power output in MW')
+nth=Wnet/QH;
+disp(nth,'the thermal efficiency')