Added function parseUserEntry() to evaluate user entry by taking all chars until first nondigit as value and rest as unit.
Defined a UserEntry class to be returned from parseUserEntry() function which also indicates if the user entry is valid.
Now user entry is evaluated better and all possible results are printed.