exampleCodeExam1 - in the main program to help write the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
3. [14] Using the GUI given below, write a Visual Basic program that adds two double numbers and displays the answer in a list box . Your program will use the GUI shown below. The user will enter two numbers into the textboxes. When the user clicks the “Calculate Answer” button, the program will display the answer in the listbox. You do not need to use zone format for your output, but your answer should be show three decimal points in the display. Use the comments
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: in the main program to help write the code in a logical fashion. Public Class Form1 Private Sub btnShow_Click(. . .) Handles btnShow.Click ‘declare the input variables ‘declare the answer variable ‘transfer the user’s input from textbox called txtNum1 to variable ‘transfer the user’s input from textbox called txtNum2 to variable ‘print the output in the listbox called lstOutput End Sub txtNum1 txtNum2 lstOutput btnCalculate...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online