Answered step by step
Verified Expert Solution
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.
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.hStep 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