Question: To be completed in the C language! please show all your work and provide detailed explanations. finna learn Exercise: Write a double linked list with


To be completed in the C language! please show all your work and provide detailed explanations. finna learn
Exercise: Write a double linked list with strings (char arrays) as data Howto: //Use this structure: struct listelement struct Node { { listelement *next, prev; char text(1000); }; //and this global list head: listelement *head = NULL; You program should start with printing a menu with following items: Select: 1 push string 2 print list 3 delete item 4 end program Kerneloses them that is (wars Command =-1) { printf("Enter as place in to have ->. Scanf a number from the keyboard and execute the selected item. 3 } looper=-1 push string Reads a string, generates a new list item and the end of the list and assigns the elements data with the string. Program should go back to the start menu. print list prints the list on the screen. Each item one row. Program should go back to the start menu. delete item Reads a number from the keyboard corresponding to a list-item. The first item is "1". It deleted this item. Should th eitem not exist... I leave it up to you how to handle that. Program should go back to the start menu. end program Deletes the whole list and ends the program. Any style must do's? Use function or not, (I would strongly recommend that!) that's up to you, but we will check if you did use a double linked list and also link it forth and back! You have any ideas to make it nicer (additional text, whatever): Feel free to do so, but don't deviate from the core idea. Other than that, please only one file! This will not be graded by an automatic submission system, but by hand. Use your creativity. Don't cheat, we will run MOS tests. Hints: A function which returns the last element of the list would be a great idea! Then, if you push back a new item, generate this new item and link it to the last element, and the last element to it. Don't forget to set loose ends to NULL". Result example: 1 push string 2 print list 3 delete item 4 end program >1 insert text (hello done push string (1 insert text (world done push string(2 hello world
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
