#3 Write an object oriented C++ program to create a doubly linked. Each node sho
ID: 3570795 • Letter: #
Question
#3 Write an object oriented C++ program to create a doubly linked. Each node should be able to store a person's first and last names, along with their respective age. Initialize the list with 5 nodes. The program should include a member function that allows the user to print out all the nodes whose age is less than a value input by the user (in either direction). It should also allow the user to search for a particular person's name. It should be able to output the lists average age. Finally it should allow for a name to be removed. The program should allow the user to take choices from a menu.Explanation / Answer
#include usingnamespace std; struct node { int data; node *next; node *prev; }; void addnode(); void delnode(); void display(); void show(); void search(); node *start=NULL, *temp1, *temp2, *temp3; int main() { char ch; do { char i; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.