You have missed using "break;" instruction at the end of each case matching.
your code should be similar to the following
In case of forgetting to add the "break;", once each case statement is matched the rest of the instruction under other case/default statements are also executed. Notice for default no break; is needed since there is nothing to be run after default condition
Ashley P.
Great, now only I got it!10/03/19