Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Write a program that reads in 1 0 lines from a text file and writes it out in reverse order. Use an array
Write a program that reads in lines from a text file and writes it out in reverse order. Use an array of string data types to store the contents of the file
Build a linked list of strings. Modify the code from ealier to store the strings in a linked list instead of an array until end of file not just first lines
Modify your program so it stores the strings in sequential order
In the string list ask the user which string they want to delete. Remove the corresponding node from the list. Print out the new list with the node removed. Try removing the beginning, middle and end elements.
Add a recursive function that will print out the sorted strings in reverse order and delete the nodes
Step 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