Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due
Project3A Specifications: 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 final year it is depreciated by its value at the beginning of the year.) Write a program that performs the following tasks:
(A) Request a description of the item, the year purchased, 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 on one of two buttons.
(B) Validate all the data and produce the following error messages:
"Must enter a Description.""Year Purchased is not numeric.""Year Purchased is not between 1900 and 9999""Purchase Amount is not numeric."“Purchase Amount must be > 0”"Purchase Amount must be > zero.""Years to Depreciate is not numeric.""Number of years must be between 1 and 999."
(D) The Restart button will reset program to accept new data.
"Must enter a Description.""Year Purchased is not numeric.""Year Purchased is not between 1900 and 9999""Purchase Amount is not numeric.""Purchase Amount must be > zero.""Years to Depreciate is not numeric.""Number of years must be between 1 and 999."
Comments to Developer:
Shown at Start up or after Restart button clicked:
Shown with data prior to clicking “Show Calculation” (Note: Straight-line is selected)
New form is displayed to show depreciation.
Show Calculate displays this form: