Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

***Please write code in C++ , include waitlist.h header file and the waitlist.cpp main file.*** Also, please write it as struct and include everything in

***Please write code in C++ , include "waitlist.h" header file and the "waitlist.cpp" main file.***

Also, please write it as struct and include everything in the directions below.

image text in transcribed

You will design an online contact list to keep track of names and phone numbers a. Define a class contactList that can store a name and up to 3 phone numbers (use an array for the phone numbers). Use constructors to automatically initialize the member variables b. Add the following operations to your program: i. Add a new contact. Ask the user to enter the name and up to 3 phone numbers. ii. Delete a contact by having the user enter the name ii. Search the list by name and print the name and phone numbers for that one person iv. Print all contacts and phone numbers for each contact. C. Create a program to test your class. The program should have a menu like this one 1. 2. 3. 4. 5. Add a contact Delete a contact Print all contacts Search for a contact Exit Here is how your node will look: (This is going to be a struct) The struct will contain a string, an array of 3 elements and the pointer to the next node. Name Phone Numbers 2145556678 8179992222 2143555555 Pointer to Next Node Test: Take a screen shot or screen shots testing your program. Enter two contacts print all contacts, search for a contact, delete a contact, print all contacts again so you can see the deleted contact is gone, search for the deleted contact. Source Code: waitlist.cpp, waitlist.h

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago