logo

Crowdly

Write a subroutine named “findMiddleNumber” that takes three numbers and retur...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Write a subroutine named “findMiddleNumber” that takes three

numbers and returns the middle (median) number.

(A) Ask the user for three numbers using three input boxes. The

first input box should look like this:

and the rest of the input boxes should follow a similar structure.

Assume that the user input is an integer but can be very large, e.g., the user

may input 40000.

(B) Find the middle number by using if – elseif – else statements to compare

the numbers.

(C) Display the result in a message box. The message box

should look like this if the user enters 1, 2, 3 into input boxes:

 Make sure to include “Option

Explicit” statement before the sub.

[Expected time to answer: 10 mins]

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.lisboa.ucp.pt?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!