VB 6.0
7. Depreciation to a Salvage Value of 0. For tax purposes an item may be depreciated
over a period of several years, n. With the straight-line method of depreciation,
each year the item depreciates by 1/nth of its original value. With the
double-declining-balance method of depreciation, each year the item depreciates
by 2/nths of its value at the beginning of that year. (In the last year it is
depreciated by its value at the beginning of the year.) Write a program that
(a) Requests a description of the item, the year of purchase, the cost of the item,
the number of years to be depreciated (estimated life), and the method of
depreciation. The method of depreciation should be chosen by clicking one
of two command buttons.
(b) Displays a depreciation schedule for the item similar to the schedule shown
in Figure 5-16. 
Перевод задачи:
Обесценивание Ликвидационной Стоимости равно 0. Для целей налогообложения продукт может быть обесценен на период в несколько месяцев, n. Если использовать прямолинейный метод обесценивания, то каждый год товар будет обесцениваться на 1/n от первоначальной стоимости. С помощью метода двойного понижения остатка каждый год товар будет обесцениваться на 2/n от стоимости в начале года.(В последний год товар обесценится на свою же стоимость в начале года). Написать программу, которая:
а) Написать программу, которая запрашивает описание товара, год покупки, цену товара, количество лет обесценивания и метод, по которому товар будет обесцениваться. Нажимая на одну из командных кнопок, мы должны выбрать метод обесценивания.
б)Изобразите таблицу обесценивания, изображенную на рисунке 5-16.
