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 and save it in the VBeChap 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 dblNum and dblNum It then should divide the dblNum variables value by the dblNum 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 and ; the number appears in the label control. Now test it using the numbers and The infinity symbol infty appears in the label control because the application is trying to divide a number by Add a selection structure to the procedure. The selection structure should perform the division and display the quotient only if the value in the dblNum variable is not ; otherwise, it should display NA 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
