Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Please use C Language only) Write a C program that: creates and prints out a linked list of strings. Similar to java your program should
(Please use C Language only)
Write a C program that: creates and prints out a linked list of strings. Similar to java your program should include the node struct. Test your program for different lists of string. Add the following functions to the program above . void add after (node ptr &list, char a word, char word after[]) which inserts a node containing "word_after" in the linked list "list", after the first occurrence of a node containing "a_word". If "list" does not contain such a node, the function leaves it unchanged. . void delete node (node ptr &a list, char a word[l) which deletes the first node in "a list" which contains "a word" a) b) void list selection sort (node ptr &a list) which sorts a list alphabetically (use your answer to Question 4 to help). sample input/output might be: Enter first word (or'.' to end list): though Enter next word (or '.' to end list) actions Enter next word (or '.' to end list): speak Enter next word (or '.' to end list louder Enter next word (or'.'to end list): than Enter next word (or '.'to end list): words Enter next word (or'.'to end list): . THE LIST IS NOW: though actions speak louder than words AFTER WHICH WORD WOULD YOU LIKE TO ADD AN EXTRA WORD? though WHICH WORD WOULD YOU LIKE TO ADD? many THE LIST IS NOW: though many actions speak louder than words WHICH WORD WOULD YOU LIKE TO DELETE? than THE LIST IS NOW: though many actions speak louder words AFTER SORTING, THE LIST IS: actions louder many speak though wordsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started