Final answer:
To design a program using pseudo code with two parallel arrays, a binary search algorithm can be used to search for a person's name and display their phone number if found.
Step-by-step explanation:
To design a program using pseudo code with two parallel arrays, a binary search algorithm can be implemented. Here is a sample pseudo code:
- Define the people array and phone numbers array with the corresponding values.
- Sort the people array in alphabetical order to enable the binary search algorithm.
- Prompt the user to enter the name of the person they want to search for.
- Implement the binary search algorithm to search for the input name in the people array.
- If the name is found in the people array, display the corresponding phone number from the phone numbers array.
- If the name is not found, prompt the user that the name was not found.