Answer:
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim sum, product, num1, num2 As Integer
num1 = Val(TextBox1.Text)
num2 = Val(TextBox2.Text)
sum = num1 + num2
product = num1 * num2
TextBox3.Text = sum
TextBox4.Text = product
End Sub
End Class
- Explanation:
- The solution is implemented in Visual Basic Programming Language
- Two textboxes are created to receive the user's input and two textboxes for displaying sum and product respectively
- Each of these controls are appropriately labeled (See the attached GUI interface)
- The Sum is calculated by adding the values from textbox1 and 2
- The product is calculated by multiplying both