). Find the median of the numbers in the array, and output the result. Use a subprogram to input the numbers, a function to find the median, and a subprogram to output the result.

To find the median of numbers in an array, you can follow these steps:

Step 1: Create a subprogram to input the numbers into an array. This subprogram could prompt the user to enter the size of the array and then loop to get each number.

Here is an example implementation in Python:

```python
def input_numbers():
n = int(input("Enter the size of the array: "))
numbers = []
for i in range(n):
num = int(input("Enter number {}: ".format(i+1)))
numbers.append(num)
return numbers
```

Step 2: Write a function to find the median of the numbers in the array. The median is the value that separates the higher half from the lower half of a data sample. To find the median, you need to sort the array in ascending order and then calculate the middle element(s) based on the array's length.

Here is an example implementation of the median function in Python:

```python
def find_median(numbers):
sorted_numbers = sorted(numbers)
n = len(sorted_numbers)
if n % 2 == 0:
mid_left = sorted_numbers[n // 2 - 1]
mid_right = sorted_numbers[n // 2]
median = (mid_left + mid_right) / 2
else:
median = sorted_numbers[n // 2]
return median
```

Step 3: Create a subprogram to output the result. This subprogram could simply print the median value on the console.

Here is an example implementation of the output subprogram in Python:

```python
def output_result(median):
print("The median is: ", median)
```

Step 4: Call the three subprograms in your main program to get the desired output.

```python
numbers = input_numbers()
median = find_median(numbers)
output_result(median)
```

By following these steps, you can implement a solution to find the median of numbers in an array using subprograms for input, a function for calculation, and a subprogram for output.