Question: Submit a .cpp file in the assignment folder and .doc (you can also draw, take a picture, and paste in the word file) file as
Submit a .cpp file in the assignment folder and .doc (you can also draw, take a picture, and paste in the word file) file as appropriate.
- Create 10 random numbers of value 100-150 as elements of a doubly linked list and circular linked list. Perform the following tasks (write functions and calling them in main())
- Create both lists by insert begin and print each of them.
- Insert 1000 at the beginning of the circular list and print. Draw a picture as how will perform the task. Print the list.
- Insert 3000 at the 5th position of the doubly linked list. Draw a picture to show how insertion happened. Print the list.
- Delete 4th element from the circular list. Draw a picture to show how deletion happened. Print the list.
- Convert the doubly linked list to a doubly linked circular list. How will you confirm this list is circular?
- Create a sorted doubly linked list by inserting the generated random numbers one by one in an ascending order.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
