Create the logic for a program that prompts a user for three

numbers and stores them in an array. Pass the array to a
method that reverses the order of the numbers. Display the
reversed numbers in the main program.

for i=1 to 3

prompt "Enter a number"
read a(i)

b = reverse(a)
print b

function reverse(x)
for i=1 to 3
y(4-i) = x(i)
return y
end function

Here's a step-by-step logic for the program you described:

1. Start the program.

2. Prompt the user to enter three numbers, one at a time.

3. Create an empty array called "numbers" to store the inputted numbers.

4. Read the first number entered by the user and store it in the first position of the array.

5. Read the second number entered by the user and store it in the second position of the array.

6. Read the third number entered by the user and store it in the third position of the array.

7. Call a method called "reverseArray" and pass the "numbers" array as an argument.

8. In the "reverseArray" method, create a new array called "reversedNumbers" with the same size as the "numbers" array.

9. Use a loop to iterate through each element of the "numbers" array.

10. Starting from the last position of the "numbers" array, copy each element to the corresponding position in the "reversedNumbers" array (from last to first).

11. Return the "reversedNumbers" array.

12. Back in the main program, receive the returned array from the "reverseArray" method and store it in a new array called "reversed".

13. Display the elements of the "reversed" array in the reverse order they appear in the array (from first to last).

14. End the program.

This logic outlines the steps to prompt the user for three numbers, store them in an array, reverse the order of the numbers using a method, and then display the reversed numbers in the main program.

To create a program with the logic you described, you can follow these steps:

1. Prompt the user for three numbers.
2. Store the three numbers in an array.
3. Pass the array to a method that reverses the order of the numbers.
4. Display the reversed numbers in the main program.

Here's an example of the logic in Java:

```java
import java.util.Scanner;

public class ReverseNumbers {
public static void main(String[] args) {
int[] numbers = new int[3];

// Prompt the user for three numbers
Scanner scanner = new Scanner(System.in);
System.out.println("Enter three numbers:");

for (int i = 0; i < 3; i++) {
System.out.printf("Number %d: ", i + 1);
numbers[i] = scanner.nextInt();
}

// Pass the array to a method that reverses the order of the numbers
reverseNumbers(numbers);

// Display the reversed numbers
System.out.println("Reversed numbers:");
for (int num : numbers) {
System.out.println(num);
}
}

public static void reverseNumbers(int[] arr) {
int start = 0;
int end = arr.length - 1;

while (start < end) {
// Swap the elements at start and end indices
int temp = arr[start];
arr[start] = arr[end];
arr[end] = temp;

// Move the indices towards the center
start++;
end--;
}
}
}
```

In this program, we prompt the user for three numbers using a loop and store them in an array called `numbers`. Then, we pass the `numbers` array to the `reverseNumbers` method, which reverses the order of the elements in the array. Finally, we display the reversed numbers in the main program by iterating over the array and printing each element.