diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2471/CH2/EX2.4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2471/CH2/EX2.4')
-rwxr-xr-x | 2471/CH2/EX2.4/Ex2_4.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2471/CH2/EX2.4/Ex2_4.sce b/2471/CH2/EX2.4/Ex2_4.sce new file mode 100755 index 000000000..c5db16ac0 --- /dev/null +++ b/2471/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,22 @@ +clear ;
+clc;
+// Example 2.4
+printf('Example 2.4\n\n');
+printf('Page No. 47\n\n');
+
+// given
+F1= 500*10^3;// fuel oil in gallons
+F2= 500*10^3;// coal in gallons in Pound
+C1= 165*10^3;// cost of oil per year in Pound
+C2= 92*10^3;// cost of an equivalent of coal in Pound
+Ce= 100*10^3;// capital cost of extra handling eqiupment
+
+Cm= (Ce*0.2);// Maintenance , interest costs per year
+As= C1-C2;// Annual Saving in Pound
+printf('Annual Saving is %3.0f Pound\n',As)
+
+if((2*As)> Ce) then
+disp("Replacing an obsolete boiler plant is considerable");
+else
+disp("Replacing an obsolete boiler plant is not considerble");
+end
|