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 /3434/CH14/EX14.19 | |
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 '3434/CH14/EX14.19')
-rw-r--r-- | 3434/CH14/EX14.19/Ex14_19.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3434/CH14/EX14.19/Ex14_19.sce b/3434/CH14/EX14.19/Ex14_19.sce new file mode 100644 index 000000000..b0b6503bf --- /dev/null +++ b/3434/CH14/EX14.19/Ex14_19.sce @@ -0,0 +1,24 @@ +clc
+// given data
+
+Co=120000.0 // cost in Rs
+N=5 // useful life
+T=40/100.0 // tax rate
+i=9/100.0 // interest rate
+Earning=[33000.0,35000.0,37000.0,39000,41000.0]
+Depreciate=Co/N // depreciation in Rs
+pretax=zeros(5)
+discshfl=zeros(5)
+for x = 2:6
+ pretax=Earning(x-1)-Depreciate
+ tax=0.4*pretax
+ ernng=pretax-0.4*pretax
+ cashf=ernng+Depreciate
+ discshfl(x-1)=cashf/(1+i)**(x-1)
+end
+netdiscntincm=sum(discshfl) // net discount income in Rs
+NPV=netdiscntincm-Co // NPV
+printf( "NPV of dryer is Rs %.2f",NPV)
+
+// The answer in the book is wrong as the value of discounted cashflow is incorrect
+
|