summaryrefslogtreecommitdiff
path: root/1922/CH4/EX4.10/4_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '1922/CH4/EX4.10/4_10.sce')
-rwxr-xr-x1922/CH4/EX4.10/4_10.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1922/CH4/EX4.10/4_10.sce b/1922/CH4/EX4.10/4_10.sce
new file mode 100755
index 000000000..66df6020e
--- /dev/null
+++ b/1922/CH4/EX4.10/4_10.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Initialization of variables
+T1=673 //K
+T2=293 //K
+//calculations
+eta=(T1-T2)/T1
+//results
+if eta>=0.5 then
+ printf("Max efficiency = %.3f and an efficiency of 0.5 is possible",eta)
+else
+ printf("Max efficiency = %.3f and an efficiency of 0.5 is not possible",eta)
+end