The goal of this project is to create a simple command line program that reads in a single word from the command line (use the "int argc, char * argv[]" approach discussed in class and in previous projects) and stores the unique letters of that word in a Binary Search Tree. If a letter occurs two or more times do not store it again. Instead increment a field in the node that tracks the number of times the letter appears in the given word. After the binary search tree has been created output the letters in-order and then again in reverse-order. Additionally print the highest and lowest values (alphabetically) in the tree. Finally, by processing the values in the tree, print out the total number of letters in the word.
Example of running the program from the command line:
example.exe abca
The resulting output should be:
In Order:
a, 2
b, 1
c, 1
Reverse Order:
c,1
b,1
a,2
Total: 4
Lowest Value: a
Highest Value: c