Question
HAS TO BE IN C++ FORM! Create two linked lists each having ten nodes..the first list has a pointer called UNO to the first node
HAS TO BE IN C++ FORM! Create two linked lists each having ten nodes..the first list has a pointer called UNO to the first node and the second list has a pointer called DUO to the first node. The lists are to be sorted as you create them. The data in the lists will consist of a last name and age Print out each sorted list after you create them..then delete all nodes from the FIRST list whose age is over 40and delete all nodes from the second list whose age is under 50. Print out both Finally..merge the REMAINING nodes from both lists into one list..headed by first. Print out the final list.
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