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 --- 3434/CH14/EX14.20/Ex14_20.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 3434/CH14/EX14.20/Ex14_20.sce (limited to '3434/CH14/EX14.20/Ex14_20.sce') 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 -- cgit