Implement two classes named Led and Command associated as follows:
LED ------> Command
where the dotted arrow line from class Led to class Command indicates that a Led object does not internally store a Command object. Instead, Led uses or depends on Command as a local variable in a member function or in the parameter list of a member function.
The attributes involved in modeling a Led object clearly include its buffer, clipboard, current line, associated file name, whether the buffer contains unsaved contents, etc. Feel free to introduce attributes essential to your modeling of the editor.
The public interface of class Led must include a public constructor that take an optional file name as a parameter and a member function that initiates an editing session, as suggested in the following code:
The private interface of class Led must include several member functions, each implement- ing one of the commands listed in Table 3. Again, feel free to introduce any member function that can facilitate your implementation of Led.
• Class Command models a command line in terms of such attributes as the two line addresses, the command symbol, whether the command is valid, whether there is a comma in the command line, etc. Feel free to adjust the attributes to your liking. For example, you might include attributes representing default command symbol and default and ceiling values for the line addresses, initializing them at construction. The primary operation of the class should be implemented by a public member function, say parse, responsible for dissecting a given command line into its parts. Feel free to include other members of your choice to facilitate your work.
• You are not allowed to use the new and delete operators in this assignment; the idea is to recognize that it is possible to write substantial C++ programs without getting involved and entangled with dynamic memory management.
• You are not allowed to use global variables.
• You are not allowed to use C-style raw arrays.
13 freelancers are bidding on average $50 for this job
Sir I have vast experience in c++,u can view my profile and complete on time.I am a full time freelancer, working for more than 2 years now. Have clients from different parts of the world.