Question: Create an application named You Do It 2 and save it in the VB 9 e Chap 0 4 folder. Add two text boxes,

Create an application named You Do It 2 and save it in the VB9e\Chap04 folder. Add two text boxes, a label, and a button to the form. The buttons Click event procedure should assign the contents of the text boxes to Double variables named dblNum1 and dblNum2. It then should divide the dblNum1 variables value by the dblNum2 variables value, assigning the result to a Double variable named dblAnswer. Display the answer in the label. Code the procedure. Save the solution and then start the application. Test the application using the numbers 6 and 2; the number 3 appears in the label control. Now test it using the numbers 6 and 0. The infinity symbol (\infty ) appears in the label control because the application is trying to divide a number by 0. Add a selection structure to the procedure. The selection structure should perform the division and display the quotient only if the value in the dblNum2 variable is not 0; otherwise, it should display N/A (for Not Available) in the label. Save the solution and then run and test. If solution runs correctly, close Visual Studio and navigate to the You Do It 2 folder. Zip this folder and upload to assignment by the assignment due date.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!