summaryrefslogtreecommitdiff
path: root/3035/CH8/EX8.1/Ex8_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3035/CH8/EX8.1/Ex8_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3035/CH8/EX8.1/Ex8_1.sce')
-rwxr-xr-x3035/CH8/EX8.1/Ex8_1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3035/CH8/EX8.1/Ex8_1.sce b/3035/CH8/EX8.1/Ex8_1.sce
new file mode 100755
index 000000000..7ee1315c1
--- /dev/null
+++ b/3035/CH8/EX8.1/Ex8_1.sce
@@ -0,0 +1,11 @@
+// Variable Declaration
+w = 0.8 //Coal to be burnt for every kWh of electric energy(kg)
+C = 5000 //Calorific value of coal(kilo-calories/kg)
+
+// Calculation Section
+heat_energy = C*w/860 //Heat energy of combustion of given coal(kWh)
+efficiency = 1/heat_energy //Overall efficiency
+
+
+// Result Section
+printf('Overall efficiency of the plant = %.3f' ,efficiency)