Question: using c#: A GUI program has a button named btnHypot; three text boxes named txtSide1, txtSide2, and txtHypot. The intent is that the user will

using c#:

A GUI program has a button named btnHypot; three text boxes named txtSide1, txtSide2, and txtHypot. The intent is that the user will enter numeric values, perhaps with decimals, into the first two boxes. When the button is clicked, the square root of the sum of the squares of the values the user entered would be displayed in the third text box.

Answer the following questions

(5 points) Identify the event that the program will handle for the button.

(10 points) Assume that the user enters valid data into the first two text boxes. Write the body of a handler for the event that will get the values from the first two boxes and display the result desired in the third text box.

(5 points) If you were to do error checking, what method would you use to process the user's input so that you would get a true/false indication whether there was an error or not? Just name the method.

Polymorphis

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!