Question

Write a program to enter the value of two variables (V and W) using inputbox. Find...

Write a program to enter the value of two variables (V and W) using inputbox. Find and
print the minimum value for two variables in textbox. Design form window and select all the
control objects are used.

Homework Answers

Answer #1

1. To enter two variables as inputs we need to create two labels:

  • Enter the first value (V)
  • Enter the second value (W)

2. To take the user inputs, we need to create the text fields for V and W.

3. Then we need to create a button for sending the command to max-min check and a text box to display the result.

Click on the command button (input button). Code is given below:

Private Sub Command1_Click()

If Val (Text1.Text) < Val (Text2.Text)

    Then

   Text3.Text = Text1.Text

Else

   Text3.Text = Text2.Text

End If

End Sub

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a program that asks the user to enter two integer numbers. the main function then...
Write a program that asks the user to enter two integer numbers. the main function then passes these numbers to a function named exp that calculates the multiplication of these numbers and print the exponential value of the result of multiplication
Write a C++ program that asks the user to enter in three numbers and displays the...
Write a C++ program that asks the user to enter in three numbers and displays the numbers in ascending order. If the three numbers are all the same the program should tell the user that all the numbers are equal and exits the program. Be sure to think about all the possible cases of three numbers. Be sure to test all possible paths. Sample Runs: NOTE: not all possible runs are shown below. Sample Run 1 Welcome to the order...
1. Given variables A and B, each holding an 8-bit unsigned number. Write an assembly program...
1. Given variables A and B, each holding an 8-bit unsigned number. Write an assembly program to find the minimum value and put the result into variable C. Example if A > B then C = B. Assume that all variables are stored in registers. - embedded system -
Write a C++ program to do the following: Declare and assign values to int variables x,...
Write a C++ program to do the following: Declare and assign values to int variables x, y Declare an int variable z; and store the sum of x and y in it Declare a pointer called pz and point it in the heap direction (using new) Store the z value in the heap location using the pz pointer Print the content of the pz pointer Print the pointer (the address)
Using python, write the program below. Program Specifications: You are to write the source code and...
Using python, write the program below. Program Specifications: You are to write the source code and design tool for the following specification: A student enters an assignment score (as a floating-point value). The assignment score must be between 0 and 100. The program will enforce the domain of an assignment score. Once the score has been validated, the program will display the score followed by the appropriate letter grade (assume a 10-point grading scale). The score will be displayed as...
python Write a program to find the largest value. Ask the user to enter three numbers....
python Write a program to find the largest value. Ask the user to enter three numbers. Compare them and report the largest one. [Hint: The user is free to enter any three numbers. Some or all of them may be the same. Take this into consideration when you compare the numbers.] The following are some examples. Enter first number: 7 Enter second number: 14 Enter third number: 10.5 The largest number is: 14.0 Enter first number: 17 Enter second number:...
Write a C program that asks the user to enter two integers x and n. Then...
Write a C program that asks the user to enter two integers x and n. Then the program computes xn (=x * x * x …… (n times)) using for loop. using printf scanf
Write a program to take input of two integer variable a and b. After taking input...
Write a program to take input of two integer variable a and b. After taking input of these variables print all the palindrome numbers from a to b. I need this is C programming language.
write a c++ program A class called car (as shown in the class diagram) contains: o...
write a c++ program A class called car (as shown in the class diagram) contains: o Four private variables: carId (int), carType (String), carSpeed (int) and numOfCars (int). numOfCars is a static counter that should be  Incremented whenever a new Car object is created.  Decremented whenever a Car object is destructed. o Two constructors (parametrized and copy constructor) and one destructor. o Getters and setters for the Car type, ID, and speed. And static getter function for numOfCars....
Two int numbers are entered through the keyboard. Write a c++ program to find the value...
Two int numbers are entered through the keyboard. Write a c++ program to find the value of one number raised to the power of another. (Do not use the pow() function. Ex: Enter two int numbers: 5 3 5 * 5 * 5 = 125 Ex: Enter two int numbers: 5 -3 1/(5 * 5 * 5) = 1/125 = 0.008 Ex: Enter two int numbers: -2 -3 1/(-2 * -2 * -2 )= 1/-8 = -1/8 = - 0.125
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT