Write an application takes three numbers as input in textbox


Assignment:

Q: 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.
Result of Average Calculator application.

a. Creating the application. Create a new Windows Forms application named AverageCalculator.

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.

2159_Average calculator.jpg

Solution Preview :

Prepared by a verified Expert
Visual Basic Programming: Write an application takes three numbers as input in textbox
Reference No:- TGS01938594

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)