Sale!

Visual Studio exercise: Create an application that the Martin Company’s…..solved

$20.00 $17.00

Category:

Description

5/5 - (2 votes)

Visual Studio exercise:
Create an application that the Martin Company’s accountant can used to calculate an asset’s annual depreciation. You can either create your own interface or create the one shown in Figure 6-59 on page 351 (see above). The figure shows a sample depreciation schedule for an asset with a cost of $100,000, a useful life of four years, and a salvage value of $15,000.Theaccountant will enter the asset’s cost, useful life (in years), and salvage value (which is the value of the asset at the end of its useful life). Use a list box to allow the user to select the useful life. Display the line depreciation amounts using the Financial.SLN method. (SLN stands forstraight-line.) The method’s syntax is Financial.SLN(cost, salvage, life), in whichcost, salvage, and lifeare the asset’s cost, salvage value, and useful life, respectively. The method returns the depreciation amount as a Double number. The Asset cost and Salvage value text boxes shown in Figure 6-59 should accept only numbers, the period, and the Backspace key.