Question
I need help write a program that has an array of at least 10 stringobjects that hold people's names and phone numbers. Theprogram should ask the user to enter a name or a partial name tosearch for the array. Any entries in the array that matchshould be displayed. I need help write a program that has an array of at least 10 stringobjects that hold people's names and phone numbers. Theprogram should ask the user to enter a name or a partial name tosearch for the array. Any entries in the array that matchshould be displayed.
Explanation / Answer
please rate - thanks #include #include #include using namespace std; string toUpper(string); int main() {int num=11,count=0,i,n; string::size_type found; string name,temp,temp2; string phone[]={"Becky Warren, 678-1223","Jeo Looney,586-0097", "Geri Palmer, 223-8787","Lynn presnell, 887-1212", "Holly Gaddis, 555-8878","Sam Wiggins, 555-0998", "Bob Kain, 555-8712","Tim Haynes, 555-7676", "Warren Gaddis, 555-9037","Jean James, 555-4939", "Ron Palmer, 486-2783"}; cout