i need to make a program that will do straight-line depreciation.
it should prompt the users for
The year of purchase of the asset
The original cost of the asset
The estimated life of the asset
the program should calculate the amount of depreciation during each year and the accumulated depreciation at the end of each year. here is an example for a computer purchased in 1999 for $2500
Year Depreciation Accumulated Depreciation
1999 500 500
2000 500 1000
2001 500 1500
2002 500 2000
2003 500 2500
the program also has to work for any number of years of estimated life
thats part 1
part 2
the second part is a program that calculates the double-declining balance depreciation.
the program should have the same output as above except it should include the begining balance.
it also should work for any number of years.
i know what varaibles i am going to have to prompt for, and i know i am going to need a loop to display the years, and the accummulated depreciation, i just dont know what the loop should contain, and all the context of it.
and as for the second part, i have some ideas. kinda similar but i dont know how to make it display the begining balance like it should, becasue it is the cost minus the depreciation, then that minus the next depreciation, and so on and so forth.
this damn stuff is confusing