summaryrefslogtreecommitdiff
path: root/1943/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1943/CH2/EX2.4/Ex2_4.sce')
-rwxr-xr-x1943/CH2/EX2.4/Ex2_4.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1943/CH2/EX2.4/Ex2_4.sce b/1943/CH2/EX2.4/Ex2_4.sce
new file mode 100755
index 000000000..bc29b9e30
--- /dev/null
+++ b/1943/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,16 @@
+
+clc
+clear
+//Input data
+ng=0.97//Efficiency of electric generator
+nt=0.95//Efficiency of turbine
+nb=0.92//Efficiency of boiler
+nc=0.42//Efficiency of cycle
+no=0.33//Efficiency of overall plant
+
+//Calculations
+na=(no/(ng*nt*nb*nc))//Efficiency of auxiliaries
+n=(1-na)*100//Percentage of total electricity generated which is consumed in running the auxiliaries
+
+//Output
+printf('Percentage of total electricity generated which is consumed in running the auxiliaries is %3.2f percent',n)