Dominic A.

asked • 10/24/17

Write a pseudo code for the problem

There a number of methods that are used for calculating the depreciation of an asset. One commonly used method is the sum-of-the-years-digits. For example, consider an equipment of value 15 million cedis required to be depreciated over 5 years period. We first calculate the sum of the years digits by adding 1,2,3,4, and 5. Thus the sum-of-the-years-digits is 15. For the first year the amount of depreciation is (5/10)*15 million (i.e. 5 million), the second year will be(4/15)*15 million (i.e. 4 million), the third year will be (3/15)*15 million (i.e. 3 million) and so forth. You are to devise a computer solution to accept the value of an asset and the number of years of depreciation as inputs and outputs the year, the amount of depreciation starting with year 1 up to the year required and the balance outstanding at the end of each year under appropriate headings.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.