summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.20/Ex14_20.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3434/CH14/EX14.20/Ex14_20.sce
downloadScilab-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.20/Ex14_20.sce')
-rw-r--r--3434/CH14/EX14.20/Ex14_20.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3434/CH14/EX14.20/Ex14_20.sce b/3434/CH14/EX14.20/Ex14_20.sce
new file mode 100644
index 000000000..801d6b38b
--- /dev/null
+++ b/3434/CH14/EX14.20/Ex14_20.sce
@@ -0,0 +1,13 @@
+clc
+// given data
+
+Co=300000 // cost in Rs
+S=20000.0 // salvage value in Rs
+N=15 // useful life
+
+D=(Co-S)/N // Depreciation
+BV=Co // Book Value
+for i =1:N
+ BV=BV-D;
+ printf(" The Book value at the end of %i th year is Rs %.2f\n",i,BV)
+end