Design a program that has 2 parallel arrays a string array


Design a program that has 2 parallel arrays: a String array named people that is initalized with the names of seven strangers, and a string array named phonenumbers that is initalized with the seven strangers phonenumbers. The program should allow the user to enter a person's name ( or part of a person's name). It should then search for that person in the people array. If the person is found, it should get that person's phone number from the phonenumbers array and display it. If the person is not found in the people array, the program should display a message indicating so.

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Design a program that has 2 parallel arrays a string array
Reference No:- TGS01676984

Now Priced at $35 (50% Discount)

Recommended (92%)

Rated (4.4/5)