Enter Action Code (1 for help): 1
The action codes are:
0 - Exit this program
1 - Produce this help message
2 - Add a new node to the list
3 - Display a user-selected node
4 - Remove a user-selected node
5 - Show all nodes in ascending order
6 - Show all nodes in descending order
7 - Count the number of nodes
Enter Action Code (1 for help): 2
Enter new string: red
Node added
Enter Action Code (1 for help): 2
Enter new string: green
Node added
Enter Action Code (1 for help): 2
Enter new string: blue
Node added
Enter Action Code (1 for help): 2
Enter new string: red
Duplicate added
Enter Action Code (1 for help): 5
List nodes are as follows:
1 >blue<
1 >green<
2 >red<
Enter Action Code (1 for help): 6
List nodes are as follows:
2 >red<
1 >green<
1 >blue<
Enter Action Code (1 for help): 7
There are 3 nodes in the list
Enter Action Code (1 for help): 4
Enter string: red
One duplicate removed
Enter Action Code (1 for help): 4
Enter string: green
Node removed
Enter Action Code (1 for help): 0
The list still has nodes. Throw them away? y