Question
Please follow the instructions as accurately as possible. this is supposed to be written in c++. Try to make the result look as close to
Please follow the instructions as accurately as possible. this is supposed to be written in c++. Try to make the result look as close to the sample output as possible using setw and setprecision. THE PROGRAM SHOULD READ A FILE AND THEN PRINT TO THE SCREEN EXACTLY HOW THE SAMPLE LOOKS. PLEASE DO NOT FORGET THIS. Also it is crucial to not #include any .h. This is supposed to be strictly written in c++ and nothing else.
I heavily appreciate comments whenever possible. Also, please post a screenshot of a test run if possible, but this is not required.
Thank you in advance.
Write a program that keeps track of a telephone directory. The program should create a structure, Person, with the following data: struct Person string firstName; string lastName; string phoneNumber; The program should then create a vector of Person structs, called directory. Your program should have functions to: Read the vector data from a data file "telephoneData.tx" into the vector directory Print the details of all Persons in the vector. You may use the following "telephoneData.txt" file: Tom Garcia 855-433-2076 Nancy James 202-872-1010 Bill Meyer 120-343-5623 Jack Didier 352-654-1983 Your program should print something like this: Name Telephone Tom Garcia Nancy James Bill Meyer Jack Didier 855-433-2076 202-872-1010 120-343-5623 352-654-1983Step 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