Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Exercise 4 determine the output displayed in the text box 4. Private Sub btnD

ID: 3917142 • Letter: I

Question

In Exercise 4 determine the output displayed in the text box

4. Private Sub btnDetermine Click.. Handles btnDetermine click Dim numOnenumTwo, numThree,numHighest As Double numTwo-cDbl (txtTwo Text) numThree = CDbl (txtThree. Text) numHighest - FindHighest (numOne, numTwo, numThree) txtHighest.Text-CStr (numHighest) End Sub Function FindHighest x As Double, y As Double, z As Double) As Double Find the highest of three numbers denoted by x, y, and z Dim highest As Double highest x If y> highest Then highesty End IE If z> highest Then highest - z End IE Return highest End Function (Assume the first three text boxes contain the numbers 7, 4, and 3.)

Explanation / Answer

The given program prints 7 as output.

Explanation:
Assume the input would be 7,4,3 which will be stored in numOne,numTwo,numThree respectively.
A function called FindHighest will be called with parameters as 7,4,3. The result will be stored in numHighest
numHighest will be printed in the output textbox.

In Function variable highest will be assigned with x value that is 7.
If condition will check whether y is greater than highest and the condition fails as 4 is not greater than 7.
Another If condition which will check z is greater than highest and the condition fails as 3 is not greater than 7
highest value will be returned in the end.

So, The final output will be 7