Create an application that uses two list boxes to store ZIP codes: one for ZIP codes associated with a $15 shipping fee and the other for ZIP codes associated with a $20 shipping fee. Use the following names for the solution, project, and form: Ship Solution, Ship Project, and Main Form.vb. Save the solution in the VbReloaded2010Chap06 folder. You can create either your own user interface or the one shown in Figure 6-73. e application should allow the user to enter a ZIP code. It then should search for the ZIP code in the first list box. If it ends the ZIP code in the first list box, the application should display $15 as the shipping fee. If the ZIP code is not in the ? first list box, the application should search the second list box. If it ends the ZIP code in the second list box, the application should display $20 as the shipping fee. If the ZIP code is not included in either list box, the application should display an appropriate message. Use the following ZIP codes for the first list box: 60611, 60234, 56789, 23467, 60543, 60561, 55905, and 89567. Use the following ZIP codes for the second list box: 50978, 78432, 98432, 97654, and 20245. Figure 6-73 Sample interface for the Ship With Us application Powder Skating Rink
Create an application that the company's accountant can use to calculate an asset's annual depreciation. Use the following names for the solution, project, and form: Sonheim Solution, Sonheim Project, and Main Form.vb. Save the solution in the VbReloaded2010Chap06 folder. You can create either your own interface or the one shown in Figure 6-71. Figure shows a sample depreciation schedule for an asset with a cost of $1000, a useful life of four years, and a salvage value of $100. e accountant 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 numbers from 3 through 20 in the list box. e application should use the double-declining balance method to calculate the annual depreciation amounts. You can use the Financial.DDB method to calculate the depreciation. e method's syntax is Financial.DDB(cost, salvage, life, period). In the syntax, the cost, salvage, and life arguments are the asset's cost, salvage value, and useful life, respectively. e period argument is the period for which you want the depreciation amount calculated. e method returns the depreciation amount as a Double number. e Asset cost and Salvage value text boxes shown in Figure 6-71 should accept only numbers, the period, and the Back-space key. Below the Depreciation schedule label is a text box whose Multiline and ReadOnly properties are set to True, and whose ScrollBars property is set to Vertical.