Question
C++ program: Write a program that has an array of at least 20 string objects that hold peoples names and phone numbers. Use the data
C++ program: Write a program that has an array of at least 20 string objects that hold peoples names and phone numbers. Use the data file provided.
The program should ask the user to enter a name or partial name to search for in the array. Any entries in the array that match the string entered should be displayed. For example, if the user enters Bibb, the program should display the following names from the list:
Delmer Bibb, 555-7444
Rene Bibb, 555-3255
1. Read data file to find out how many people there are (loop)
2. Dynamically create a string array to store the entire string of each line (names and numbers)
3. Have at least one function to read/populate your string array
4. Have at least one function to determine if the search parameter exists and display results to console.
5. Use functions with arguments.
6. No global variables.
input.txt
Murray Jones, 555-1212
Christal Delamater, 555-4587
Zetta Smith, 555-6358
Elia Roy, 555-5841
Delmer Bibb, 555-7444
Smith Nevers, 555-7855
Roselle Gose, 555-3211
Jonathan Basnett, 555-5422
Marcel Earwood, 555-4112
Marina Newton, 555-1212
Magdalen Stephan, 555-3255
Deane Newton, 555-6988
Mariana Smith, 555-7855
Darby Froman, 555-2222
Shonda Kyzer, 555-3333
Jones Netto, 555-1477
Bibone Magnani, 555-4521
Laurena Stiverson, 555-7811
Elouise Muir, 555-9633
Rene Bibb, 555-3255
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