added program cmdnums

demonstrates usage of enums in a switch case