Question: The declining balance formula for calculating depreciation is
VN = V0(1 - R)N
where
VN = the value after N years
Vo = the initial value
R = the rate of depreciation
N = the number of years
Write a program to read values for Va, R, and N and then calculate the depreciated value. Run the program several times to find the depreciated value of a new machine just purchased by Dispatch Die-Casting for $50,000 at the end of each year of its useful life. Assume that the rate of depreciation is 12 percent and that the usual life of the machine is five years.