Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Cable Direct Solution, Cable Direct Project, and Main Form.vb. Save
the application in the VB2010\Chap07 folder. Create the interface shown in Figure 7-39. The list boxes are named lstPremium and lstConnections. Display numbers from 0 through 20 in the
lstPremium control. Display numbers from 0 through 100 in the lstConnections control. The Calculate Total Due button’s Click event procedure should calculate and display a customer’s cable bill. The cable rates are shown in Figure 7-40. Business customers must have at least one connection. Use two functions: one to calculate and return the total due for business customers, and the other to calculate and return the total due for residential customers. The form’s
FormClosing event procedure should verify that the user wants to close the application. Code the application. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
|Programming Language||Visual Basic|