summaryrefslogtreecommitdiff
path: root/2024/CH5/EX5.4/5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2024/CH5/EX5.4/5_4.sce')
-rwxr-xr-x2024/CH5/EX5.4/5_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2024/CH5/EX5.4/5_4.sce b/2024/CH5/EX5.4/5_4.sce
new file mode 100755
index 000000000..bacb6e2b9
--- /dev/null
+++ b/2024/CH5/EX5.4/5_4.sce
@@ -0,0 +1,13 @@
+clc
+//Initialization of variables
+W=14.5 //B/lbm
+Q=141.7 //B/lbm
+Tr=520 //R
+Ta=1040 //R
+//calculations
+n1=W/Q
+n2=1-Tr/Ta
+Wc=n2*Q
+//results
+printf("Thermal efficiency = %.2f percent",n1*100)
+printf("\n Work done in carnot cycle = %.1f Btu/lbm",Wc)