summaryrefslogtreecommitdiff
path: root/3856/CH5/EX5.2/Ex5_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3856/CH5/EX5.2/Ex5_2.sce')
-rw-r--r--3856/CH5/EX5.2/Ex5_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3856/CH5/EX5.2/Ex5_2.sce b/3856/CH5/EX5.2/Ex5_2.sce
new file mode 100644
index 000000000..d7a4620af
--- /dev/null
+++ b/3856/CH5/EX5.2/Ex5_2.sce
@@ -0,0 +1,15 @@
+//Calulate the Efficiency of the power plant
+
+//Example 5.2
+
+clc;
+
+clear;
+
+T2=833; //final temperature in K
+
+T1=311; //initial temperature in K
+
+e=((T2-T1)*100)/T2; //Efficiency of the power plant in percent
+
+printf("Efficiency of the power plant = %.0f percent",e);