Question: 21. Consider the following code snippet very well and answer the following questions.[8 marks] Dim result as integer Dim firstinput as integer Dim secondinput as

21. Consider the following code snippet very well and answer the following questions.[8 marks]

Dim result as integer

Dim firstinput as integer

Dim secondinput as integer

Dim thirdinput as integer

firstinput = txtfirstinput.text

secondinput = txtsecondinput.text

thirdinput = txtthirdinput.text

a. Write the code for displaying the result after adding the contents of the first two textboxes.

b. Write the code for displaying the result after calculating average of the contents of the three textboxes.

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 Databases Questions!