Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ Write a computer program that reads a series of positive integers, one per line, from the keyboard into a linked list. The user
In C++
Write a computer program that reads a series of positive integers, one per line, from the keyboard into a linked list. The user indicates that they are finished by entering 1 (the negative number is not stored in the list). Create two separate linked lists: list1: nodes are inserted at the front of the list list2: nodes are inserted at the end of the list Create the following functions: - buildListFoward(int newelement) - adds to the end of the list - buildListBackward(int newelement) - adds to the beginning of the list - print () - prints the values in the list on one line separated by spaces Add the following functions using list1 linked list: - deleteList () - delete the entire list - deleteNode( ) - delete a node from the end of a list Note: for functions buildListFoward(), buildListBackward() and deleteNode(), you should print the modified list Test your functions by calling them in main()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