1. The vintage-car club you belong to needs to replace its antiquated software that is used to keep track of the club members' cars. Define a class that will store a member's name, car year and model, and the year the member joined the club. Be sure to restrict access to these variables to methods that belong to the class. At this time, the only method you need to define for your class is a method to create a message box to display the member name, car year and model, and the year the member joined the club. Set the caption of the message box to the member's name. In the message box, each item should be displayed on a separate line. For example, the message box for member John Smith could look like the following.
Member Name: John Smith
Car Year and Model: 1965 Mustang
Member Since: 1995
2.A. You are asked to create a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. 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 quantity on hand entered by the user, create a three-alternative selection statement that does the following.
sets a string named strStatus to "Surplus" if the quantity entered by the user is greater than or equal to 100
sets a string named strStatus to "Reorder" if the quantity entered by the user is less than 35
sets a string named strStatus to "No Action" if neither of the conditions above is true
The last step is to display the status string in the label.
B. What will be the Handles clause at the end of the sub procedure?
3.You have a friend who lives in Canada 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 kilometers, and he must convert kilometers to miles. 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 kilometers, calculate the number of miles, and then display the number of miles. You will use a constant to store the kilometers-to-miles 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 an event.
Note: your answer will be more readable if you separate each control element with a blank line.
B. Declare each variable and constant the form's event handler sub procedure that the form will need. The kilometer-to-mile conversion factor is 0.621371. 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