Write a program in C on linked lists based on the following details: • Create a global self-referencing structure called node that holds an integer variable called data and a pointer to the structure node *next • Create the following functions to handle your linked list: o void insert_begin0 : inserts a node at the beginning of the list o void insert_end0: inserts a node at the end of the list o void delete_begin0: deletes the node from the beginning of the list o void delete_end0: deletes the node from the end of the list o void display0 : displays the whole list on the screen (use printf in your function) In the main function, create a menu for the user to choose from a list of functions to operate. (use switch that evaluates the value of an integer entered by the user to handle your menu. Make sure to provide good prompting on the screen to visualize the menu for the user) It is important to use a while loop in your main function to display the menu for the user until they select exit from the menu to stop the program (use exit) function) nus: add the following functions to your program: . void insert_pos): inserts a node at a specified position in the list (0 is the first position) . void delete_pos0: deletes a node from a specified position in the list

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Write a program in C on linked lists based on the following details:
• Create a global self-referencing structure called node that holds an integer variable called data and a pointer to the structure node *next
• Create the following functions to handle your linked list:
o void insert_begin) : inserts a node at the beginning of the list
o void insert_end() : inserts a node at the end of the list
o void delete_begin) : deletes the node from the beginning of the list
o void delete_end() : deletes the node from the end of the list
o void display() : displays the whole list on the screen (use printf in your function)
• In the main function, create a menu for the user to choose from a list of functions to operate. (use switch that evaluates the value of an integer entered by the user to handle
your menu. Make sure to provide good prompting on the screen to visualize the menu for the user)
• It is important to use a while loop in your main function to display the menu for the user until they select exit from the menu to stop the program (use exit) function)
Bonus: add the following functions to your program:
. void insert_pos(): inserts a node at a specified position in the list (0 is the first position)
- void delete pos): deletes a node from a specified position in the list
Transcribed Image Text:Write a program in C on linked lists based on the following details: • Create a global self-referencing structure called node that holds an integer variable called data and a pointer to the structure node *next • Create the following functions to handle your linked list: o void insert_begin) : inserts a node at the beginning of the list o void insert_end() : inserts a node at the end of the list o void delete_begin) : deletes the node from the beginning of the list o void delete_end() : deletes the node from the end of the list o void display() : displays the whole list on the screen (use printf in your function) • In the main function, create a menu for the user to choose from a list of functions to operate. (use switch that evaluates the value of an integer entered by the user to handle your menu. Make sure to provide good prompting on the screen to visualize the menu for the user) • It is important to use a while loop in your main function to display the menu for the user until they select exit from the menu to stop the program (use exit) function) Bonus: add the following functions to your program: . void insert_pos(): inserts a node at a specified position in the list (0 is the first position) - void delete pos): deletes a node from a specified position in the list
Expert Solution
steps

Step by step

Solved in 4 steps with 9 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY