Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Phonebook in c++ without using namespace std This program is used to create a phonebook for storing contact information into a text file. The program

Phonebook in c++ without using namespace std

This program is used to create a phonebook for storing contact information into a text file.

The program begins by asking the user to provide a name for the file that will contain their phone book information. It will then ask the user to provide the names and numbers of their contacts. It should keep asking the user for contact information until they type in Done (case-sensitive).

After the user types Done, store all contact information into the file name they provided at the beginning of the program. If the user does not add any contacts, then the file should be empty.

Please see the sample output below to guide the design of your program.

Sample Output:

Please provide the file name for your phone book: contacts.txt Contact 1: Please provide the name: Elsie Simon Please provide their number: (202)555-0115 Contact 2: Please provide the name: Kaisha Cope Please provide their number: 5455689016 Contact 3: Please provide the name: Sultan Vargas Please provide their number: 371-998-4166 Contact 4: Please provide the name: Done Saving phonebook into contacts.txt Done!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What federal act prohibits discrimination based on age?

Answered: 1 week ago

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago