Currently, menu logic is repeated in switch statements, which is error prone and hard to maintain. Revamp with a proper Menu class such that is constructed based on an array of menu items with names and actions. This should be syntactically "nice" and should be easy to maintain.
Currently, menu logic is repeated in switch statements, which is error prone and hard to maintain. Revamp with a proper
Menu
class such that is constructed based on an array of menu items with names and actions. This should be syntactically "nice" and should be easy to maintain.