Question: Write a C++ object-oriented program which performs maintenance on a singly linked list, based on Information stored in a data file (updates.txt). The nodes in
Write a C++ object-oriented program which performs maintenance on a singly linked list, based on Information stored in a data file (updates.txt). The nodes in the linked list have the following structure: struct papeofNede { string firstNams: string LastName: int id: double R2 namestNedenext: There is a pointer Namestnede first which points to the first node in the list and a pointer NementNede- last (optional) which points to the last node in the list. The data file contains lines of the following type: A Thomas Nelson 1111 3.2_[Add the Thomas Nelson record to the linked list) D 2222 (Delete the record whose Id is 2222) $ 3333 (locate and print the record whose id Is 3333) C11113.5 (Change the era of record 1111 to 3.5) Grading Rubric Adds a record to the list: 15 points Deletes a record from the list: 15 points Locates a record in the list: 15 points Changes a record in the list: 15 points Comments: 10 points Object-oriented: 10 points Defensive Programming: 10 points Programming style: 10 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
