Assignment 1NOTE: The important information about submission and code specifics at the end of thisassignment specification.IntroductionA situation exists by which your client (me) requires the ability to store and process textfiles. A class called TextLL has to be implemented and will be composed of a sequenceof tokens.The internal data structure that underpins each TextLL instance will be a linked list, andeach element of the list will be stored in a Node class, which will contain a stringvalue, representing a word.Assignment TaskYou are required to use a linked list, as Discuss (check midcourse.net for the help you need)ed in lectures, to create your ownimplementation of the TextLL class. You will initially implement a class calledLinkedList that uses instances of Node to store instances of value_type (in thisassignment, each Node will be used to store a single string). A TextLL object willcontain a private instance of LinkedList and provide the necessary wrapper code tocontrol and manipulate it.Your TextLL class will implement the following member functions:??Constructors, which return an empty TextLL, or use an argument-providedarray of integers to initialise the TextLL on creation.o TextLL () ? Creates an instance that does not contain any textdata.o TextLL (string fileName) ? Creates an instance and storesthe file?s content in the instance.??int size() ? Returns a count of the number of words in the TextLL.??Overloaded concatenation operator (i.e. ?+=?). The result of use of thisoperator is that the TextLL arguments are concatenated and the answer isstored in the left argument.??Overloaded remove all operator (i.e. ?-=?). The result of use of thisoperator is that all occurrences of the RHS argument are removed from theLHS argument and the answer is stored in the left argument. Note: theoccurrences are for the entire RHS argument, NOT each of its wordsindividually.??Overloaded output operator (i.e. ?<) that outputs the content of theTextLL in a form suitable for printing by the cout statement.To demonstrate your TextLL class you will write a program called TextDemo that usesyour TextLL class. When executed, your TextDemo should:1. Instantiate two TextLL objects (text1 and text2) and:o Read and store the contents of testfile1.txt in text1o Read and store the contents of testfile2.txt in text2??Information on how to open and read from text files can be found here:http://www.cplusplus.com/doc/tutorial/files/2. Display the two TextLL instances and the number of words in each of them.3. Add the contents of text2 to text1, and display text1.4. Remove all occurrences of testfile3.txt from text1. Display text1,text2 and text3, and the number of words in each of them.Note: You should provide all your .h and .cpp files, and a Makefile. Also, if necessary,provide a readme.txt file containing any instructions for the marker. Each programfile should have a proper header section including your name.and your code should be properly documented with inline comments.
Our group of high quality writers are ready to help you with a similar paper within a specified deadline. Just click ORDER NOW and provide us with your assignment details, contact information and make payments. You will get periodic updates on order progress in your email.
USE THE CALCULATOR BELOW TO GET THE QUOTE