summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.20/Ex14_20.sce
blob: 801d6b38bb06111a376f9f8f684eb6eae3a8b2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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