Write a program to maintain a list of some of your friends with their phone numbers. The program should reserve enough elements for 20 friends, and then present the user with an input screen to enter a friend name. The program then searches about the name in the previously existing list of names. When the inputted name is located in the list print it with its corresponding phone number. If the name does not exist, enable the user to add it to the list. Along with its phone number.

Sounds like fun! I'll tell you what, since it's so much fun, I'll let you give it a try first! When you get stuck (show us the code and a specific problem you're having, precisely stated), we'll chime in.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.