C++ Data Structure
$10-30 USD
Paid on delivery
1. Implement a transaction-based linked list data structure using C++. The program will be
interactive. Data transactions will be entered at the command line and results will be
displayed on the console.
2. An alphabetized linked list of names and ages will be created, updated and managed
using Add, Delete and List transactions. These transaction types will be processed as
follows:
• Add – To add a name to the list, enter a transaction in the form of “A”, space,
name (no spaces in the name), space, age. For example: “A John 28”. If the new
name is not on the list, the name and age will be added such that the list of
names is in ascending alphabetical order and the message “name added” will be
displayed. If the name is already on the list, the name will not be added, and the
message “name not added” will be displayed.
• Delete – To delete a name and age from the list, enter a transaction in the form
of “D”, space, name (no spaces in the name). For example: “D Joan”. If the
name is not on the list, the message “name not found” will be displayed. If the
name is on the list, the name and age will be removed and the message “name
deleted” will be displayed.
• List – To display the names in ascending sequence, enter a transaction in the
form “L”. Each name in the list will be displayed with the respective age on a line
by itself.
• Quit – To terminate the program, enter a transaction in the form of “Q”.
In this assignment, predefined linked-list libraries are not allowed. All linked-list functions
are to be defined within your program.
3. The program will be run at the command prompt by navigating to the directory
containing the executable version of the program after the program is compiled.
Redirection can be used to process multiple input transactions in a batch. For example:
• prog2 < [login to view URL]
Similarly, program output can be captured in an output file using redirection. For
example:
• prog2 < [login to view URL] > [login to view URL]
You are encouraged to add additional comments throughout the program that your feel
might be helpful to the reader of your source code.
Project ID: #21704158
About the project
1 freelancer is bidding on average $30 for this job
Hello. I have read your description and I am so interested in your project. I am confident in your project and I can finish it clearly on time. I am well experienced and skillful C/C++ and OOP programmer. I have +10 More