Question
This assignment will require you to write a program that will create an array of 10 string objects. The array will be initialized with the
This assignment will require you to write a program that will create an array of 10 string objects. The array will be initialized with the strings which contain the persons name and phone number in one string. The following is an example of test data: Renee Javens, 678-1223, Joe Looney, 586-0097, Geri Palmer, 223-8787, Lynn Presnell, 887-1212, Bill Wolfe, 223-8878, Sam Wiggins, 486-0998, Bob Kain, 586-8712, Tim Haynes, 586-7676, John Johnson, 223-9037, Jean James, 678-4939, Ron Palmer, 486-2783 The program will prompt the user for the name or part of a name to search for. For example, the user may type in Joe, and the program should then display Joe Looney, 586-0097. If the user enters Pal then the program should have two outputs from the above list. The program should make use of the string object methods to find the matches. The array should be created in main and use a method to search the array to find the name(s) in the array. If a match is not found then it should display a message indicating there is no match. The method must be passed the array of data.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started