summaryrefslogtreecommitdiff
path: root/2471/CH2/EX2.4/Ex2_4.sce
blob: c5db16ac06cc8ec3241595bd5f8bdd7faa843a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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