Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4 . Write a C + + program to manage your WhatsApp groups. The information of every WhatsApp group will be stored in a linked
Write a C program to manage your WhatsApp groups. The information of every WhatsApp group will be stored in a linked list containing the phone numbers of each group member. The groups will be stored in an array max size that stores the name of the group and the linked list of its members such as family
The program should first input the information of your WhatsApp groups from a text file. The first line of every group shows the group name and number of members, followed by the phone numbers of the members.
family
friends
Then, the user can enter List to list the phone numbers of a group, Change to change the phone number of a person in all groups or Quit to quit the program as shown in the sample run below.
Note: The linked list header file is given on the next page.
Sample Run:
Change List Quit: List
Which group? family
Change List Quit: Change
Old & new phone numbers:
Change List Quit: List
Which group? family
Change List Quit: Quit
Node Header Prototype
template
struct node
T info;
node link;
;
Linked List Header Prototype
template
class LL
protected:
node head last;
int count;
public:
LL;
~LL;
bool isEmptyList;
int length;
T back;
T front;
void destroyList;
node searchT&;
void insertFirstT&;
void insertLastT&;
void deleteNodeT&;
friend ostream& operatorostream& LinkedList&;
;
Doubly Linked List Node Header Prototype
template
struct node
T info;
node rightleft;
;
Doubly Linked List Header Prototype
template
class DLL
protected:
node first last;
int count;
public:
DLL;
~DLL;
bool isEmptyList;
int length;T back;T front;void destroyList;
node searchT&;
void insertFirstT&;
void insertLastT&;
void deleteNodeT&;
friend ostream& operatorostream& DLinkedList&;
;
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