From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2471/CH2/EX2.4/Ex2_4.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 2471/CH2/EX2.4/Ex2_4.sce (limited to '2471/CH2/EX2.4') 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 -- cgit