summaryrefslogtreecommitdiff
path: root/3733/CH34/EX34.2
diff options
context:
space:
mode:
Diffstat (limited to '3733/CH34/EX34.2')
-rw-r--r--3733/CH34/EX34.2/Ex34_2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3733/CH34/EX34.2/Ex34_2.sce b/3733/CH34/EX34.2/Ex34_2.sce
new file mode 100644
index 000000000..d21e0d829
--- /dev/null
+++ b/3733/CH34/EX34.2/Ex34_2.sce
@@ -0,0 +1,12 @@
+// Example 34_2
+clc;funcprot(0);
+//Given data
+P=12000;//The cost of a small preheater in rupees
+r=5/100;// Interest
+n=16;// Expected life in years
+A=425;//The cost of the equipment in rupees
+
+//Calculation
+S=round(P-((A)/(r/(((1+r)^n)-1))));// The salvage value of the preheater in rupees
+printf('\nThe salvage value of the preheater after 16 years of service,S=Rs.%0.0f',S);
+// The answer provided in the textbook is wrong