Izzy A.

asked • 08/22/15

Display the amount of depreciation, and the value of the asset after depreciation for each of the n year.

One method of calculating depreciation for an asset is the double-declining balance method. In this method, if an amount is to be depreciated over n years,2/n times the undepreciated balance is depreciated annually. For example, using this method to depreciate RM150,000 over a 5 year periods, we would depreciate 2/5 of RM150,000(RM60,000) the first year, leaving an undepreciated balance of RM90,000.In the second year,2/5 of RM90,000(RM36,000)would be depreciated leaving an undepreciated in each year, the entire amount will never be depreciated. Develop an algorithm (only) using a method of your choice for calculating depreciation using the double-declining balance. Assume the input to the program would be n year followed the value of the asset. Display the amount of depreciation, and the value of the asset after depreciation for each of the n year. Your algorithm should employed at least TWO(2) of the three control structures in a structured programming.

1 Expert Answer

By:

Patrick B. answered • 04/21/20

Tutor
4.7 (31)

Math and computer tutor/teacher

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.