Open the Tea Emporium Solution (Tea Emporium Solution.sln) file contained in the Tea Emporium Solution folder. Open the Code Editor window. The btnDisplay_Click procedure should display the total of the values stored in the decPounds array. Code the procedure. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
Open the NumDays Solution (NumDays Solution.sln) file contained in the ClearlyVB2012 Chap18NumDays Solution folder. (The image in the picture box was downloaded from the Open Clip Art Library at http://openclipart.org.) Declare a class-level, 12-element onedimensional array that contains the number of days in each month; use 28 for February. The txtMonth control should accept only numbers and the Backspace key; code the appropriate procedure. The btnDisplay_Click procedure should display the number of days corresponding to the month number entered by the user. For example, if the user enters the number 1, the procedure should display 31 because there are 31 days in January. The procedure should display an appropriate message in a message box when the user enters an invalid month number. Code the procedure. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.