diff options
Diffstat (limited to '647/CH5/EX5.2/Example5_2.sce')
-rwxr-xr-x | 647/CH5/EX5.2/Example5_2.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/647/CH5/EX5.2/Example5_2.sce b/647/CH5/EX5.2/Example5_2.sce new file mode 100755 index 000000000..71efe00d9 --- /dev/null +++ b/647/CH5/EX5.2/Example5_2.sce @@ -0,0 +1,30 @@ +clear;
+clc;
+
+// Example: 5.2
+// Page: 150
+
+printf("Example: 5.2 - Page: 150\n\n");
+
+// Solution
+
+//*****Data*****//
+Th = 810;// [K]
+Tl = 300;// [K]
+//*************//
+
+// Solution (a)
+eta = (Th - Tl)/Th;
+printf("(a) The efficiency of the heat engine is %.1f %%\n",eta*100);
+
+// Solution (b)
+Th = 1366;// [K]
+Tl = 300;// [K]
+eta = (Th - Tl)/Th;
+printf("(b) The efficiency of the heat engine is %.1f %%\n",eta*100);
+
+// Solution (c)
+Th = 810;// [K]
+Tl = 344;// [K]
+eta = (Th - Tl)/Th;
+printf("(c) The efficiency of the heat engine is %.1f %%\n",eta*100);
\ No newline at end of file |