Question: 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 positiveIn 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!