Question: Visual Basic For tax purposes an item may be depreciated over a period of several years, n. With the straight-line method of depreciation, each year
Visual Basic
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 doubledeclining-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 > zero." "Years to Depreciate is not numeric." "Number of years must be between 1 and 999." (C) Displays the year-by-year depreciation similar to examples below. (D) The Restart button will reset program to accept new data.
I need help making this work with radio buttons for straight-line method and double declining.
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
