What will be the handles clause at the end


A. You are asked to create a form with a textbox named txtAge, a label named lblResult, and a button named btnOK. In the space below, write the Visual Basic code to be placed in the button-click event handler. After your code declares variables and retrieves the age entered by the user, create a three-alternative selection statement that sets a string named strResult to "Yes" if the age value entered by the user is less than 21; 
sets a string named strResult to "No" if the age value entered by the user is greater than 21; and 
sets a string named strResult to "Maybe" if the age value entered by the user is 21. 
The last step is to display the result string in the label.

B. What will be the Handles clause at the end of the sub procedure?

3. (TCO 3) You have a friend who lives near the Canadian border and makes road signs. He is often asked to make signs that specify distance in miles and kilometers. His boss gives him only the number of miles, and he must convert miles to kilometers. When he complains about using a calculator for the conversion, you tell him that, because you completed BIS311, you are confident that you can build an application to help him. Your application will input the number of miles, calculate the number of kilometers, and then display the number of kilometers. You will use a constant to store the miles-to-kilometers conversion factor.

A. In the space given below, list each control element that your form will need. Provide the following information about each control element, separated by commas:
the Control type, the control's Name property (using a naming convention), and the event.

Note: your answer will be more readable if you separate each control element with a blank line.

B. Declare each variable and constant that the form's event handler sub procedure will need. The miles-to-kilometer conversion factor is 1.609344. Assume that all values will have a fractional part.
You do not need to do any calculations. Use an appropriate naming convention in your answer.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What will be the handles clause at the end
Reference No:- TGS0100220

Expected delivery within 24 Hours