3.9 (Average Calculator Application) Write an application that takes three numbers as input in TextBoxes, stores the three
integers in variables, then calculates and displays the average of the numbers. The output is displayed in a Label. Figure 3.33
shows the completed application.
Fig. 3.33. Result of Average Calculator application.
a. Creating the application. Create a new Windows Forms application named AverageCalculator. Rename its Form1.vb file as
AverageCalculator.vb. Set the Form's Font property to Segoe UI 9pt and its TextpropertytoAverageCalculator.
b. Coding the Click event handler. Perform the average calculation in the Calculate Button's Click event handler. Display the
average in the resultLabel.
c. Clearing the result. Write event handlers for the TextBoxes'TextChanged events. Write code to clear resultLabel after the
user enters new input into any of the TextBoxes.
d. Running the application. Select Debug > Start Debugging to run your application. Enter three integers, then verify that the
average is calculated properly