(Solved) : Write Set Functions Perform Either Insertion Deletion List Values Based User Input Provide Q37157057 . . .

What to do
Write a set of functions that:
- That will perform either an insertion or deletion into a listof values based on user input (you are provided with the mainfunction that will perform the user input).
- Complete the function to traverse and print out the list aftereach operation
- You are provided the driver program and the header file. Youwill need to implement all functions contained in the header filein a separate C file.
What to submit
I ask you to submit the following:
- Your well-commented source code file (you do not need to submitthe driver or header file, but it must work with those files).
- A screen shot of a run of your program, running the driver onthe user input of 1, then value of 12; 0, then value of 12; 1, thenvalue of 8; then 2 to quit.
/* Define structure to represent a node in a linked list.*/ struct node int data; struct node link; 1: /* This function returns a value of one if the linked list /* is empty int empty (struct node *head); y* /* This function prints a linked list. 8/ void print_list(struct node *head); This function inserts a new node in a linked list. void insert (struct node **ptr_to_head, struct node n); 8/ /*This function deletes a node form a linked list. void remove(struct node **ptr_to_head, int old); Show transcribed image text /* Define structure to represent a node in a linked list.*/ struct node int data; struct node link; 1: /* This function returns a value of one if the linked list /* is empty int empty (struct node *head); y* /* This function prints a linked list. 8/ void print_list(struct node *head); This function inserts a new node in a linked list. void insert (struct node **ptr_to_head, struct node n); 8/ /*This function deletes a node form a linked list. void remove(struct node **ptr_to_head, int old);
Expert Answer
Answer to What to do Write a set of functions that: That will perform either an insertion or deletion into a list of values based …
OR