summaryrefslogtreecommitdiff
path: root/3733/CH34/EX34.3
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3733/CH34/EX34.3
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3733/CH34/EX34.3')
-rw-r--r--3733/CH34/EX34.3/Ex34_3.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3733/CH34/EX34.3/Ex34_3.sce b/3733/CH34/EX34.3/Ex34_3.sce
new file mode 100644
index 000000000..e51063132
--- /dev/null
+++ b/3733/CH34/EX34.3/Ex34_3.sce
@@ -0,0 +1,27 @@
+// Example 34_3
+clc;funcprot(0);
+//Given data
+C=40000;//Capital cost in Rupees
+V_1=4000;// Salvage value in Rupees
+n=20;// Useful life in years
+r=6/100;//Interest rate
+
+//Calculation
+//(a)
+TD=C-V_1;//Total depreciation in rupees
+D=TD/2;//Depreciation in 10 years in rupees
+V_2a=C-D;//Plant value at the end of 10 years in rupees
+//(b)
+// Assume p_d=(1-p)
+p_d=(V_1/C)^(1/n);
+n=10;// Plant life in years
+V_2b=C*(p_d)^(n);// Plant value at the end of 10 years in rupees
+//(c)
+n=20;// Plant life in years
+Q=C-V_1;// Replacement cost in rupees
+q=(Q*r)/(((1+r)^n)-1);//The amonut set aside per year
+n=10;// Plant life in years
+Q=(q*(((1+r)^n)-1))/(r);// The amount deposited in sinking fund in rupees
+V_2c=C-Q;// Plant value at the end of 10 years in rupees
+printf('\n(a)Plant value at the end of 10 year,V_2=Rs.%0.0f\n(b)Plant value at the end of 10 year,V_2=Rs.%0.0f\n(c)Plant value at the end of 10 year,V_2=Rs.%0.0f',V_2a,V_2b,V_2c)
+// The answer vary due to round off error