Question 11
The constant percentage method of computing depreciation of an asset is based on the assumption
that the depreciation charge at the end of each year is a fixed percentage of the book value of the
asset at the beginning of the year. This assumption leads to the following relationship:
S = C(1 4 d)pow n
where C = original cost of assed
d = depreciation rate per year
n = number of years
S = book value of the end of n years.
Write a program to compute the number of years of useful life of an asset given the original cost,
depreciation rate, and book value at the end of its useful life (called scrap value). The program
should also display the book value at the end of each year until the end of its useful life. Your
program should allow the user to repeat this calculation as often as the user wishes.