1. Create three source files (asgn6.h, casgn6.cpp and
asgn6Driver.cpp), an object file (asgn6.o) and an executable
(asgn6Driver) in your bin directory on Linux 3 server.
2. Provide the user with a menu with the following options:
List Operations
===============
1.Insert
2.Display
3.Size
4.Delete
5.Exit
Enter your choice :
3. Overload the Insert method; one that accepts first and last name. Another that accepts
the last name only.
4. The driver program interacts with the user through the menu. Do not allow the user to
exit unless option '5' is input. Advise the user of an invalid input if the user does not
input values 1 through 5. If the user inputs a valid option, perform the action and
display the menu for the user to enter another choice.
5. The following is a summary of actions for each menu option:
option 1 - prompt the user for a first and last name and insert this information in a single linked list in alphabetical order based on last name.
option 2 - display the data to the console one node per line.
option 3 - display the number of nodes in the list.
option 4 - prompt the user for the last name to delete. delete the node otherwise
advise that a node was not deleted.
option 5 - exit the program
it looks like each node in your list will be 2 strings, a first name and a last name.
one node per line implies to me your output would look like this maybe:
Linkedlist Node {
// The value or data stored in the node
std::string firstName;
std::string lastname;
// A reference to the next node, null for last node
next;
}